ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r536737 - /ant/core/trunk/docs/manual/tutorial-writing-tasks.html
Date Thu, 10 May 2007 03:16:32 GMT
Author: kevj
Date: Wed May  9 20:16:31 2007
New Revision: 536737

-fix <ol> not closed & add information about classes for nested elements must be


Modified: ant/core/trunk/docs/manual/tutorial-writing-tasks.html
--- ant/core/trunk/docs/manual/tutorial-writing-tasks.html (original)
+++ ant/core/trunk/docs/manual/tutorial-writing-tasks.html Wed May  9 20:16:31 2007
@@ -313,14 +313,14 @@
 <p>There are several ways for inserting the ability of handling nested elements. See
 the <a href="">Manual [4]</a>
for other.
 We use the first way of the three described ways. There are several steps for that:<ol>
-<li>We create a class for collecting all the infos the nested element should contain.
+<li>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 (<code>set&lt;attributename&gt;</code>() methods).
 <li>The task holds multiple instances of this class in a list.</li>
 <li>A factory method instantiates an object, saves the reference in the list
   and returns it to Ant Core.</li>
 <li>The execute() method iterates over the list and evaluates its values.</li>
 <pre class="code">
 import java.util.Vector;
 import java.util.Iterator;
@@ -361,7 +361,8 @@
             &lt;message msg="Nested Element 2"/&gt;
+<p>Note that if you choose to use methods 2 or 3, the class that represents the nested
+element must be declared as <pre>static</pre></p>
 <a name="complex"></a>
 <h2>Our task in a little more complex version</h2>
@@ -449,7 +450,7 @@
  * 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 {

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message