public class Antlib extends Task implements TaskContainer
Modifier and Type | Field and Description |
---|---|
static String |
TAG
The name of this task
|
Constructor and Description |
---|
Antlib() |
Modifier and Type | Method and Description |
---|---|
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(java.lang.ClassLoader classLoader)
Set the class loader for this antlib.
|
protected void |
setURI(String uri)
Set the URI for this antlib.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
public static final String TAG
public void addTask(Task nestedTask)
addTask
in interface TaskContainer
nestedTask
- Nested task to execute in antlibpublic static Antlib createAntlib(Project project, URL antlibUrl, String uri)
project
- the current projectantlibUrl
- the url to read the definitions fromuri
- the uri that the antlib is to be placed inpublic void execute()
protected void setClassLoader(java.lang.ClassLoader classLoader)
classLoader
- the class loaderprotected void setURI(String uri)
uri
- the namespace uri