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);
  }
}

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 ) ; } }
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 " .
