| org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.Antlib
Antlib | public class Antlib extends Task implements TaskContainer(Code) | | Antlib task. It does not
occur in an ant build file. It is the root element
an antlib xml file.
since: Ant 1.6 |
Method Summary | |
public void | addTask(Task nestedTask) | public static Antlib | createAntlib(Project project, URL antlibUrl, String uri) Static method to read an ant lib definition from
a url. | public void | execute() Execute the nested tasks, setting the classloader for
any tasks that derive from Definer. | protected void | setClassLoader(ClassLoader classLoader) Set the class loader for this antlib. | protected void | setURI(String uri) Set the URI for this antlib. |
TAG | final public static String TAG(Code) | | The name of this task
|
addTask | public void addTask(Task nestedTask)(Code) | | add a task to the list of tasks
Parameters: nestedTask - Nested task to execute in antlib |
createAntlib | public static Antlib createAntlib(Project project, URL antlibUrl, String uri)(Code) | | Static method to read an ant lib definition from
a url.
Parameters: project - the current project Parameters: antlibUrl - the url to read the definitions from Parameters: uri - the uri that the antlib is to be placed in the ant lib task |
execute | public void execute()(Code) | | Execute the nested tasks, setting the classloader for
any tasks that derive from Definer.
|
setClassLoader | protected void setClassLoader(ClassLoader classLoader)(Code) | | Set the class loader for this antlib.
This class loader is used for any tasks that
derive from Definer.
Parameters: classLoader - the class loader |
setURI | protected void setURI(String uri)(Code) | | Set the URI for this antlib.
Parameters: uri - the namespace uri |
|
|