bodewig 00/09/05 01:29:56
Modified: docs index.html
Log:
Corrected example in "Writing your own task" to use <taskdef> as a
child of <project> instead of <target>.
Revision Changes Path
1.88 +3 -5 jakarta-ant/docs/index.html
Index: index.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/index.html,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -r1.87 -r1.88
--- index.html 2000/09/04 14:18:51 1.87
+++ index.html 2000/09/05 08:29:49 1.88
@@ -4733,7 +4733,7 @@
<ol>
<li>Make sure the class that implements your task is in the classpath when
starting Ant.</li>
- <li>In your initialization target, add a <i>taskdef</i> task. This
actually adds
+ <li>Add a <i>taskdef</i> element to your project. This actually adds
your task to the system.</li>
<li>Use your task in the rest of the buildfile.</li>
</ol>
@@ -4742,11 +4742,9 @@
<pre><?xml version="1.0"?>
<project name="OwnTaskExample" default="main"
basedir=".">
- <target name="init">
- <taskdef name="mytask"
classname="com.mydomain.MyVeryOwnTask"/>
- </target>
+ <taskdef name="mytask"
classname="com.mydomain.MyVeryOwnTask"/>
- <target name="main" depends="init">
+ <target name="main">
<mytask message="Hello World! MyVeryOwnTask works!" />
</target>
</project>