org.apache.tools.ant.taskdefs
public class Antlib extends Task implements TaskContainer
Since: Ant 1.6
Field Summary | |
---|---|
static String | TAG The name of this task |
Method Summary | |
---|---|
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. |
Parameters: nestedTask Nested task to execute in antlib
Parameters: project the current project antlibUrl the url to read the definitions from uri the uri that the antlib is to be placed in
Returns: the ant lib task
Parameters: classLoader the class loader
Parameters: uri the namespace uri