diff --git a/docs/manual/tutorial-writing-tasks.html b/docs/manual/tutorial-writing-tasks.html index 30410451e..73fc6a140 100644 --- a/docs/manual/tutorial-writing-tasks.html +++ b/docs/manual/tutorial-writing-tasks.html @@ -313,14 +313,14 @@ property name as argument and returns its value (or ${propname} if not set).

There are several ways for inserting the ability of handling nested elements. See the Manual [4] for other. We use the first way of the three described ways. There are several steps for that:

    -
  1. We create a class for collecting all the infos the nested element should contain. +
  2. We create a class for collecting all the info the nested element should contain. This class is created by the same rules for attributes and nested elements as for the task (set<attributename>() methods).
  3. The task holds multiple instances of this class in a list.
  4. A factory method instantiates an object, saves the reference in the list and returns it to Ant Core.
  5. The execute() method iterates over the list and evaluates its values.
  6. -

    +

 import java.util.Vector;
 import java.util.Iterator;
@@ -361,7 +361,8 @@ the buildfile
             <message msg="Nested Element 2"/>
         </helloworld>
 
- +

Note that if you choose to use methods 2 or 3, the class that represents the nested +element must be declared as

static

Our task in a little more complex version

@@ -449,7 +450,7 @@ import java.util.Iterator; /** * The task of the tutorial. * Print a message or let the build fail. - * @author Jan Matèrne + * @author Jan Mat�rne * @since 2003-08-19 */ public class HelloWorld extends Task {