Package org.apache.tools.ant.taskdefs
Class Antlib
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.Antlib
- All Implemented Interfaces:
- Cloneable,- TaskContainer
Antlib task. It does not
 occur in an ant build file. It is the root element
 an antlib xml file.
- Since:
- Ant 1.6
- 
Field SummaryFieldsFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidadd a task to the list of tasksstatic AntlibcreateAntlib(Project project, URL antlibUrl, String uri) Static method to read an ant lib definition from a url.voidexecute()Execute the nested tasks, setting the classloader for any tasks that derive from Definer.protected voidsetClassLoader(ClassLoader classLoader) Set the class loader for this antlib.protected voidSet the URI for this antlib.Methods inherited from class org.apache.tools.ant.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
- 
Field Details- 
TAG
 
- 
- 
Constructor Details- 
Antlibpublic Antlib()
 
- 
- 
Method Details- 
createAntlib
- 
setClassLoaderSet the class loader for this antlib. This class loader is used for any tasks that derive from Definer.- Parameters:
- classLoader- the class loader
 
- 
setURI
- 
addTaskadd a task to the list of tasks- Specified by:
- addTaskin interface- TaskContainer
- Parameters:
- nestedTask- Nested task to execute in antlib
 
- 
execute
 
-