org.apache.tools.ant.taskdefs
Class Antlib
- TaskContainer
Antlib task. It does not
occur in an ant build file. It is the root element
an antlib xml file.
static String | TAG- The name of this task
|
void | addTask(Task nestedTask)- add a task to the list of tasks
|
static Antlib | createAntlib(Project project, URL antlibUrl, String uri)- Static method to read an ant lib definition from
a url.
|
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.
|
execute, getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
TAG
public static final String TAG
The name of this task
addTask
public void addTask(Task nestedTask)
add a task to the list of tasks
- addTask in interface TaskContainer
nestedTask - Nested task to execute in antlib
createAntlib
public static Antlib createAntlib(Project project,
URL antlibUrl,
String uri) Static method to read an ant lib definition from
a url.
project - the current projectantlibUrl - the url to read the definitions fromuri - the uri that the antlib is to be placed in
execute
public void execute()
Execute the nested tasks, setting the classloader for
any tasks that derive from Definer.
- execute in interface Task
setClassLoader
protected void setClassLoader(ClassLoader classLoader)
Set the class loader for this antlib.
This class loader is used for any tasks that
derive from Definer.
classLoader - the class loader
setURI
protected void setURI(String uri)
Set the URI for this antlib.
Copyright B) 2000-2006 Apache Software Foundation. All Rights Reserved.