| org.netbeans.spi.java.project.classpath.ProjectClassPathExtender
All known Subclasses: org.netbeans.modules.java.j2seproject.classpath.J2SEProjectClassPathExtender, org.netbeans.modules.java.api.common.classpath.j2ee.J2EEProjectClassPathExtender, org.netbeans.modules.java.api.common.classpath.j2ee.WebProjectClassPathExtender,
ProjectClassPathExtender | public interface ProjectClassPathExtender (Code) | | Interface for project's compile classpath extension.
A project can provide this interface in its
org.netbeans.api.project.Project.getLookup lookup to
allow clients to extend its compilation classpath
by a new classpath element (JAR, folder, dependent project, or library).
since: org.netbeans.modules.java.project/1 1.3ProjectClassPathModifier |
Method Summary | |
boolean | addAntArtifact(AntArtifact artifact, URI artifactElement) Adds an artifact (e.g. | boolean | addArchiveFile(FileObject archiveFile) Adds an archive file or folder into the project's compile classpath if the
entry is not already there. | boolean | addLibrary(Library library) Adds a library into the project's compile classpath if the
library is not already included. |
addAntArtifact | boolean addAntArtifact(AntArtifact artifact, URI artifactElement) throws IOException(Code) | | Adds an artifact (e.g. subproject) into project's compile classpath if the
artifact is not already on it.
Parameters: artifact - to be added Parameters: artifactElement - the URI of the build output(must be owned by the artifact and be relative to it) true in case the classpath was changed exception: IOException - in case the project metadata cannot be changedProjectClassPathModifier.addAntArtifact |
addArchiveFile | boolean addArchiveFile(FileObject archiveFile) throws IOException(Code) | | Adds an archive file or folder into the project's compile classpath if the
entry is not already there.
Parameters: archiveFile - ZIP/JAR file to be added true in case the classpath was changed exception: IOException - in case the project metadata cannot be changedProjectClassPathModifier.addArchive |
addLibrary | boolean addLibrary(Library library) throws IOException(Code) | | Adds a library into the project's compile classpath if the
library is not already included.
Parameters: library - to be added true in case the classpath was changed exception: IOException - in case the project metadata cannot be changedProjectClassPathModifier.addLibrary |
|
|