diff -r 7685cec9fd3c -r f2ddfa555b0f doc/api/java/com/nokia/ant/Antlib.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/java/com/nokia/ant/Antlib.html Fri Sep 11 11:54:49 2009 +0100 @@ -0,0 +1,451 @@ + + + + + + +Antlib + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +com.nokia.ant +
+Class Antlib

+
+java.lang.Object
+  extended by org.apache.tools.ant.ProjectComponent
+      extended by org.apache.tools.ant.Task
+          extended by com.nokia.ant.Antlib
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, org.apache.tools.ant.TaskContainer
+
+
+
+
public class Antlib
extends org.apache.tools.ant.Task
implements org.apache.tools.ant.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 Summary
+static java.lang.StringTAG + +
+          The name of this task
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
+  + + + + + + + + + + +
+Constructor Summary
Antlib() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddTask(org.apache.tools.ant.Task nestedTask) + +
+          add a task to the list of tasks
+static AntlibcreateAntlib(org.apache.tools.ant.Project project, + java.net.URL antlibUrl, + java.lang.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(java.lang.ClassLoader classLoader) + +
+          Set the class loader for this antlib.
+protected  voidsetURI(java.lang.String uri) + +
+          Set the URI for this antlib.
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+TAG

+
+public static final java.lang.String TAG
+
+
The name of this task +

+

+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+Antlib

+
+public Antlib()
+
+
+ + + + + + + + +
+Method Detail
+ +

+createAntlib

+
+public static Antlib createAntlib(org.apache.tools.ant.Project project,
+                                  java.net.URL antlibUrl,
+                                  java.lang.String uri)
+
+
Static method to read an ant lib definition from + a url. +

+

+
+
+
+
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
+
+
+
+ +

+setClassLoader

+
+protected final void setClassLoader(java.lang.ClassLoader classLoader)
+
+
Set the class loader for this antlib. + This class loader is used for any tasks that + derive from Definer. +

+

+
+
+
+
Parameters:
classLoader - the class loader
+
+
+
+ +

+setURI

+
+protected final void setURI(java.lang.String uri)
+
+
Set the URI for this antlib. +

+

+
+
+
+
Parameters:
uri - the namespace uri
+
+
+
+ +

+addTask

+
+public final void addTask(org.apache.tools.ant.Task nestedTask)
+
+
add a task to the list of tasks +

+

+
Specified by:
addTask in interface org.apache.tools.ant.TaskContainer
+
+
+
Parameters:
nestedTask - Nested task to execute in antlib
+
+
+
+ +

+execute

+
+public final void execute()
+
+
Execute the nested tasks, setting the classloader for + any tasks that derive from Definer. +

+

+
Overrides:
execute in class org.apache.tools.ant.Task
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + +