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>