diff --git a/docs/manual/CoreTasks/typedef.html b/docs/manual/CoreTasks/typedef.html index 70de573ec..4433e7438 100644 --- a/docs/manual/CoreTasks/typedef.html +++ b/docs/manual/CoreTasks/typedef.html @@ -99,6 +99,12 @@ use when looking up classname. No + + classpathref + + a reference to a classpath to use when looking up classname. + No + loaderRef the name of the loader that is used to load the class, constructed from the specified classpath. Use this to @@ -167,11 +173,31 @@ and in the execute method invokes run on the proxied object, one may use a Runnable class as an Ant task. The following fragment defines a task called runclock. -
+  

+
     <typedef name="runclock"
              classname="com.acme.ant.RunClock"
              adapter="org.acme.ant.RunnableAdapter"/>
   
+

+ The following fragment shows the use of the classpathref and + loaderref to load up two definitions. +

+
+    <path id="lib.path">
+      <fileset dir="lib" includes="lib/*.jar"/>
+    </path>
+
+    <typedef name="filter1"
+             classname="org.acme.filters.Filter1"
+             classpathref="lib.path"
+             loaderref="lib.path.loader"
+             />
+    <typedef name="filter2"
+             classname="org.acme.filters.Filter2"
+             loaderref="lib.path.loader"
+             />
+  

Copyright © 2001-2004 Apache Software Foundation. All rights Reserved.