|
@@ -99,6 +99,12 @@ |
|
|
use when looking up <code>classname</code>.</td> <td |
|
|
use when looking up <code>classname</code>.</td> <td |
|
|
align="center" valign="top">No</td> |
|
|
align="center" valign="top">No</td> |
|
|
</tr> |
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td valign="top">classpathref</td> |
|
|
|
|
|
<td valign="top"> |
|
|
|
|
|
a reference to a classpath to use when looking up <code>classname</code>.</td> |
|
|
|
|
|
<td align="center" valign="top">No</td> |
|
|
|
|
|
</tr> |
|
|
<tr> |
|
|
<tr> |
|
|
<td valign="top">loaderRef</td> <td valign="top">the name of the loader that is |
|
|
<td valign="top">loaderRef</td> <td valign="top">the name of the loader that is |
|
|
used to load the class, constructed from the specified classpath. Use this to |
|
|
used to load the class, constructed from the specified classpath. Use this to |
|
@@ -167,11 +173,31 @@ |
|
|
and in the execute method invokes <i>run</i> on the proxied object, |
|
|
and in the execute method invokes <i>run</i> on the proxied object, |
|
|
one may use a Runnable class as an Ant task. The following fragment |
|
|
one may use a Runnable class as an Ant task. The following fragment |
|
|
defines a task called <i>runclock</i>. |
|
|
defines a task called <i>runclock</i>. |
|
|
<pre> |
|
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
<pre> |
|
|
<typedef name="runclock" |
|
|
<typedef name="runclock" |
|
|
classname="com.acme.ant.RunClock" |
|
|
classname="com.acme.ant.RunClock" |
|
|
adapter="org.acme.ant.RunnableAdapter"/> |
|
|
adapter="org.acme.ant.RunnableAdapter"/> |
|
|
</pre> |
|
|
</pre> |
|
|
|
|
|
<p> |
|
|
|
|
|
The following fragment shows the use of the classpathref and |
|
|
|
|
|
loaderref to load up two definitions. |
|
|
|
|
|
</p> |
|
|
|
|
|
<pre> |
|
|
|
|
|
<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" |
|
|
|
|
|
/> |
|
|
|
|
|
</pre> |
|
|
<hr> |
|
|
<hr> |
|
|
<p align="center">Copyright © 2001-2004 Apache Software |
|
|
<p align="center">Copyright © 2001-2004 Apache Software |
|
|
Foundation. All rights Reserved.</p> |
|
|
Foundation. All rights Reserved.</p> |
|
|