|
org.netbeans.modules.project.ant/1 1.42.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.api.project.ant.AntBuildExtender
public final class AntBuildExtender
Allows extending the project's build script with 3rd party additions. Check the Project's lookup to see if the feature is supported by a given Ant project type. Typical usage:
ProjectManager.saveProject(org.netbeans.api.project.Project)
to persist the changes and
regenerate the main build script
Nested Class Summary | |
---|---|
class |
AntBuildExtender.Extension
Describes and allows to manipulate the build script extension and it's links to the main build script of the project. |
Field Summary | |
---|---|
static String |
ANT_CUSTOMTASKS_LIBS_PROPNAME
|
Method Summary | |
---|---|
AntBuildExtender.Extension |
addExtension(String id,
FileObject extensionXml)
Adds a new build script extension. |
void |
addLibrary(Library library)
Copies global library to the shared library folder of the project if the project is sharable and adds library name to the list of libraries needed to run Ant script. |
List<String> |
getExtensibleTargets()
Get a list of target names in the main build script that are allowed to be extended by adding the "depends" attribute definition to them. |
AntBuildExtender.Extension |
getExtension(String id)
Get an extension by the id. |
void |
removeExtension(String id)
Remove an existing build script extension. |
void |
removeLibrary(Library library)
Removes library name from the list of libraries needed to run Ant script |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ANT_CUSTOMTASKS_LIBS_PROPNAME
Method Detail |
---|
public List<String> getExtensibleTargets()
public AntBuildExtender.Extension addExtension(String id, FileObject extensionXml)
id
- identification of the extensionextensionXml
- fileobject referencing the build script for the extension,
needs to be located in nbproject directory or below.
public void removeExtension(String id)
id
- identification of the extensionpublic AntBuildExtender.Extension getExtension(String id)
id
- identification token
public void addLibrary(Library library) throws IOException
library
- global library to be copied to shared library folder of the project
IOException
- exception thrown when properties cannot be loaded or savedpublic void removeLibrary(Library library) throws IOException
library
- either global or shared library to be removed from list of
libraries needed for running Ant script; cannot be null
IOException
- exception thrown when properties cannot be loaded or saved
|
org.netbeans.modules.project.ant/1 1.42.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |