org.netbeans.modules.java.project/1 1.46

org.netbeans.spi.java.project.classpath
Interface ProjectClassPathExtender


Deprecated. As a caller, use ProjectClassPathModifier instead. As an implementor, use ProjectClassPathModifier.extenderForModifier(org.netbeans.spi.java.project.classpath.ProjectClassPathModifierImplementation).

@Deprecated
public interface ProjectClassPathExtender

Interface for project's compile classpath extension. A project can provide this interface in its 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.3

Method Summary
 boolean addAntArtifact(AntArtifact artifact, URI artifactElement)
          Deprecated. Please use ProjectClassPathModifier.addAntArtifacts(org.netbeans.api.project.ant.AntArtifact[], java.net.URI[], org.openide.filesystems.FileObject, java.lang.String) instead.
 boolean addArchiveFile(FileObject archiveFile)
          Deprecated. Please use ProjectClassPathModifier.addRoots(URL[], FileObject, String) instead.
 boolean addLibrary(Library library)
          Deprecated. Please use ProjectClassPathModifier.addLibraries(org.netbeans.api.project.libraries.Library[], org.openide.filesystems.FileObject, java.lang.String) instead.
 

Method Detail

addLibrary

@Deprecated
boolean addLibrary(Library library)
                   throws IOException
Deprecated. Please use ProjectClassPathModifier.addLibraries(org.netbeans.api.project.libraries.Library[], org.openide.filesystems.FileObject, java.lang.String) instead.

Adds a library into the project's compile classpath if the library is not already included.

Parameters:
library - to be added
Returns:
true in case the classpath was changed
Throws:
IOException - in case the project metadata cannot be changed

addArchiveFile

@Deprecated
boolean addArchiveFile(FileObject archiveFile)
                       throws IOException
Deprecated. Please use ProjectClassPathModifier.addRoots(URL[], FileObject, String) instead.

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
Returns:
true in case the classpath was changed
Throws:
IOException - in case the project metadata cannot be changed

addAntArtifact

@Deprecated
boolean addAntArtifact(AntArtifact artifact,
                                  URI artifactElement)
                       throws IOException
Deprecated. Please use ProjectClassPathModifier.addAntArtifacts(org.netbeans.api.project.ant.AntArtifact[], java.net.URI[], org.openide.filesystems.FileObject, java.lang.String) instead.

Adds an artifact (e.g. subproject) into project's compile classpath if the artifact is not already on it.

Parameters:
artifact - to be added
artifactElement - the URI of the build output (must be owned by the artifact and be relative to it)
Returns:
true in case the classpath was changed
Throws:
IOException - in case the project metadata cannot be changed

org.netbeans.modules.java.project/1 1.46

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.