Class ExtensionPoint
java.lang.Object
org.apache.tools.ant.Target
org.apache.tools.ant.ExtensionPoint
- All Implemented Interfaces:
TaskContainer
An extension point build files can provide as a place where other
build files can add new dependencies.
- Since:
- Ant 1.8.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidThrows an exception.final voidThrows an exception.Methods inherited from class Target
addDependency, dependsOn, execute, getDependencies, getDescription, getIf, getLocation, getName, getProject, getTasks, getUnless, parseDepends, performTasks, setDepends, setDescription, setIf, setIf, setLocation, setName, setProject, setUnless, setUnless, toStringModifier and TypeMethodDescriptionvoidaddDependency(String dependency) Adds a dependency to this target.booleanDoes this target depend on the named target?voidexecute()Executes the target if the "if" and "unless" conditions are satisfied.Returns an enumeration of the dependencies of this target.Returns the description of this target.getIf()Returns the "if" property condition of this target.Get the location of this target's definition.getName()Returns the name of this target.Returns the project this target belongs to.Task[]getTasks()Returns the current set of tasks to be executed by this target.Returns the "unless" property condition of this target.parseDepends(String depends, String targetName, String attributeName) final voidPerforms the tasks within this target (if the conditions are met), firing target started/target finished messages around a call to execute.voidsetDepends(String depS) Sets the list of targets this target is dependent on.voidsetDescription(String description) Sets the description of this target.voidSets the "if" condition to test on execution.voidSame asTarget.setIf(String)but requires aConditioninstancevoidsetLocation(Location location) Sets the location of this target's definition.voidSets the name of this target.voidsetProject(Project project) Sets the project this target belongs to.voidSets the "unless" condition to test on execution.voidSame asTarget.setUnless(String)but requires aConditioninstancetoString()Returns the name of this target.
-
Constructor Details
-
ExtensionPoint
public ExtensionPoint() -
ExtensionPoint
-
-
Method Details
-
addTask
Throws an exception.- Specified by:
addTaskin interfaceTaskContainer- Overrides:
addTaskin classTarget- Parameters:
task- The task to be added. Must not benull.
-
addDataType
Throws an exception.- Overrides:
addDataTypein classTarget- Parameters:
r- The wrapper for the data type element to be added. Must not benull.
-