From 29217089f566677960541632b36f2b5528bdbca9 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Tue, 5 Sep 2000 08:29:49 +0000 Subject: [PATCH] Corrected example in "Writing your own task" to use as a child of instead of . git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267958 13f79535-47bb-0310-9956-ffa450edef68 --- docs/index.html | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/index.html b/docs/index.html index be8a8829f..36bb2743f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -4733,7 +4733,7 @@ public class MyVeryOwnTask extends Task {
  1. Make sure the class that implements your task is in the classpath when starting Ant.
  2. -
  3. In your initialization target, add a taskdef task. This actually adds +
  4. Add a taskdef element to your project. This actually adds your task to the system.
  5. Use your task in the rest of the buildfile.
@@ -4742,11 +4742,9 @@ public class MyVeryOwnTask extends Task {
<?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>