private boolean handleCompileAntArtifacts(final AntArtifact[] artifacts, final URI[] artifactElements, final int operation) throws IOException { assert artifacts != null : "Artifacts cannot be null"; //NOI18N assert artifactElements != null : "ArtifactElements cannot be null"; //NOI18N assert artifacts.length == artifactElements.length : "Each artifact has to have corresponding artifactElement"; //NOI18N return ClassPathModifierSupport.handleAntArtifacts(project, project.getAntProjectHelper(), cs, eval, createClassPathUiSupportCallback(null), artifacts, artifactElements, ProjectProperties.JAVAC_CLASSPATH, WebProjectProperties.TAG_WEB_MODULE_LIBRARIES, operation); }
private boolean handleCompileLibraries(final Library[] libraries, final int operation) throws IOException { assert libraries != null : "Libraries cannot be null"; //NOI18N return ClassPathModifierSupport.handleLibraries(project, project.getAntProjectHelper(), cs, eval, createClassPathUiSupportCallback(null), refHelper, libraries, ProjectProperties.JAVAC_CLASSPATH, WebProjectProperties.TAG_WEB_MODULE_LIBRARIES, operation); }
private boolean addCompileRoots(final URL[] roots, final int operation) throws IOException { assert roots != null : "The classPathRoots cannot be null"; //NOI18N return ClassPathModifierSupport.handleRoots(project, project.getAntProjectHelper(), cs, eval, createClassPathUiSupportCallback(null), convertURLsToURIs(roots), ProjectProperties.JAVAC_CLASSPATH, ClassPathSupportCallbackImpl.TAG_WEB_MODULE_LIBRARIES, operation); }
LOGGER.log(Level.FINE, "Will remove broken classpath library references: " + toRemove); try { ClassPathModifierSupport.handleLibraryClassPathItems(WebProject.this, getAntProjectHelper(), cpMod.getClassPathSupport(), toRemove, ProjectProperties.JAVAC_CLASSPATH, WebProjectProperties.TAG_WEB_MODULE_LIBRARIES, ClassPathModifier.REMOVE, false); } catch (IOException e) { LOGGER.log(Level.FINE, "Will remove broken additional library references: " + toRemove); try { ClassPathModifierSupport.handleLibraryClassPathItems(WebProject.this, getAntProjectHelper(), cpMod.getClassPathSupport(), toRemove, WebProjectProperties.WAR_CONTENT_ADDITIONAL, WebProjectProperties.TAG_WEB_MODULE__ADDITIONAL_LIBRARIES, ClassPathModifier.REMOVE, false); } catch (IOException e) {
private boolean handlePackageRoots(final URL[] roots,final String path, final int operation) throws IOException { assert roots != null : "The classPathRoots cannot be null"; //NOI18N return ClassPathModifierSupport.handleRoots(project, project.getAntProjectHelper(), cs, eval, createClassPathUiSupportCallback(path), convertURLsToURIs(roots), WebProjectProperties.WAR_CONTENT_ADDITIONAL, ClassPathSupportCallbackImpl.TAG_WEB_MODULE__ADDITIONAL_LIBRARIES, operation); }
private boolean handlePackageAntArtifacts(final AntArtifact[] artifacts, final URI[] artifactElements, final String path, final int operation) throws IOException { assert artifacts != null : "Artifacts cannot be null"; //NOI18N assert artifactElements != null : "ArtifactElements cannot be null"; //NOI18N assert artifacts.length == artifactElements.length : "Each artifact has to have corresponding artifactElement"; //NOI18N return ClassPathModifierSupport.handleAntArtifacts(project, project.getAntProjectHelper(), cs, eval, createClassPathUiSupportCallback(path), artifacts, artifactElements, WebProjectProperties.WAR_CONTENT_ADDITIONAL, WebProjectProperties.TAG_WEB_MODULE__ADDITIONAL_LIBRARIES, operation); }
private boolean addCompileRoots(final URL[] roots, final int operation) throws IOException { assert roots != null : "The classPathRoots cannot be null"; //NOI18N return ClassPathModifierSupport.handleRoots(project, project.getAntProjectHelper(), cs, eval, createClassPathUiSupportCallback(null), convertURLsToURIs(roots), ProjectProperties.JAVAC_CLASSPATH, ClassPathSupportCallbackImpl.ELEMENT_INCLUDED_LIBRARIES, operation); }
private boolean handleCompileLibraries(final Library[] libraries, final int operation) throws IOException { assert libraries != null : "Libraries cannot be null"; //NOI18N return ClassPathModifierSupport.handleLibraries(project, project.getAntProjectHelper(), cs, eval, createClassPathUiSupportCallback(null), refHelper, libraries, ProjectProperties.JAVAC_CLASSPATH, ClassPathSupportCallbackImpl.ELEMENT_INCLUDED_LIBRARIES, operation); }
private boolean handleCompileAntArtifacts(final AntArtifact[] artifacts, final URI[] artifactElements, final int operation) throws IOException { assert artifacts != null : "Artifacts cannot be null"; //NOI18N assert artifactElements != null : "ArtifactElements cannot be null"; //NOI18N assert artifacts.length == artifactElements.length : "Each artifact has to have corresponding artifactElement"; //NOI18N return ClassPathModifierSupport.handleAntArtifacts(project, project.getAntProjectHelper(), cs, eval, createClassPathUiSupportCallback(null), artifacts, artifactElements, ProjectProperties.JAVAC_CLASSPATH, ClassPathSupportCallbackImpl.ELEMENT_INCLUDED_LIBRARIES, operation); }
private boolean handlePackageLibraries(final Library[] libraries, final String path, final int operation) throws IOException { return ClassPathModifierSupport.handleLibraries(project, project.getAntProjectHelper(), cs, eval, createClassPathUiSupportCallback(path), refHelper, libraries, WebProjectProperties.WAR_CONTENT_ADDITIONAL, WebProjectProperties.TAG_WEB_MODULE__ADDITIONAL_LIBRARIES, operation); }