站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

ProjectClassPathExtender (Java Project Support) - NetBeans API Javadoc (Current Development Version)

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

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


Deprecated. Please use the ProjectClassPathModifier instead.

@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#addAntArtifact instead.
 boolean addArchiveFile(FileObject archiveFile)
          Deprecated. Please use ProjectClassPathModifier#addArchive instead.
 boolean addLibrary(Library library)
          Deprecated. Please use ProjectClassPathModifier#addLibrary instead.
 

Method Detail

addLibrary

@Deprecated
boolean addLibrary(Library library)
                   throws IOException
Deprecated. Please use ProjectClassPathModifier#addLibrary 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#addArchive 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#addAntArtifact 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.12

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.