question: public static void maybeSetWebAppPropertiesForDynamicWebProject ( IProject project ) throws BackingStoreException { if ( WebAppUtilities . isWebApp ( project ) ) { return ; } try { if ( ! DynamicWebProjectUtilities . isDynamicWebProject ( project ) ) { return ; } IPath webContentFolder = DynamicWebProjectUtilities . getWebContentFolder ( project ) ; if ( webContentFolder != null ) { WebAppProjectProperties . setWarSrcDir ( project , webContentFolder ) ; WebAppProjectProperties . setWarSrcDirIsOutput ( project , false ) ; } } catch ( CoreException ce ) { CorePluginLog . logError ( ce ) ; } }
target:  If the given project is not already a Web App (i.e. it does not have a defined WAR directory), and it is a Dynamic Web Project, then set the WAR directory to be equivalent to the Web Project's WebContent directory, and ensure that the directory is set to be "input-only".