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