ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@locus.apache.org
Subject cvs commit: jakarta-ant/docs index.html
Date Tue, 05 Sep 2000 08:30:04 GMT
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>&lt;?xml version=&quot;1.0&quot;?&gt;
   
   &lt;project name=&quot;OwnTaskExample&quot; default=&quot;main&quot;
basedir=&quot;.&quot;&gt;
  -  &lt;target name=&quot;init&quot;&gt;
  -    &lt;taskdef name=&quot;mytask&quot; classname=&quot;com.mydomain.MyVeryOwnTask&quot;/&gt;
  -  &lt;/target&gt;
  +  &lt;taskdef name=&quot;mytask&quot; classname=&quot;com.mydomain.MyVeryOwnTask&quot;/&gt;
   
  -  &lt;target name=&quot;main&quot; depends=&quot;init&quot;&gt;
  +  &lt;target name=&quot;main&quot;&gt;
       &lt;mytask message=&quot;Hello World! MyVeryOwnTask works!&quot; /&gt;
     &lt;/target&gt;
   &lt;/project&gt;
  
  
  

Mime
View raw message