ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject cvs commit: ant/proposal/xdocs/src/org/apache/tools/ant/taskdefs SubAnt.xml
Date Wed, 14 May 2003 20:19:14 GMT
antoine     2003/05/14 13:19:14

  Modified:    docs/manual/CoreTasks subant.html
               proposal/xdocs/src/org/apache/tools/ant/taskdefs SubAnt.xml
  Log:
  added an example usage of subant with propertyset - request of Dominique Devienne
  PR:19181
  
  Revision  Changes    Path
  1.4       +16 -1     ant/docs/manual/CoreTasks/subant.html
  
  Index: subant.html
  ===================================================================
  RCS file: /home/cvs/ant/docs/manual/CoreTasks/subant.html,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- subant.html	14 May 2003 15:04:07 -0000	1.3
  +++ subant.html	14 May 2003 20:19:14 -0000	1.4
  @@ -204,7 +204,7 @@
           Adds a directory set to the implicit build path. <p> <em>Note that
the directories will be added to the build path in no particular order, so if order is significant,
one should use a file list instead!</em>
   <short-description><![CDATA[Adds a directory set to the implicit build path.]]></short-description>
   <description>
  -            <![CDATA[Adds a directory set to the implicit build path. <p> <em>Note
that the directories will be added to the build path in no particular order, so if order is
significant, one should use a file list instead!</em>]]>
  +            <![CDATA[Adds a directory set to the implicit build path. <p> <em>Note
that the directories will be added to the build path in no particular o]]><![CDATA[rder,
so if order is significant, one should use a file list instead!</em>]]>
             </description>
   
         </blockquote></td></tr>
  @@ -360,6 +360,21 @@
   <p>
               this snippet build file will run ant in each subdirectory of the project directory,
               where a file called build.xml can be found.
  +            The property build.dir will have the value subant1.build in the ant projects
called by subant.
  +        </p>
  +<pre>
  +          &lt;subant target=""&gt;
  +             &lt;propertyset&gt;
  +                  &lt;propertyref prefix="toplevel"/&gt;
  +                  &lt;mapper type="glob" from="foo*" to="bar*"/&gt;
  +             &lt;/propertyset&gt;
  +             &lt;fileset dir="." includes="*/build.xml"/&gt;
  +          &lt;/subant&gt;
  +        </pre>
  +<p>
  +            this snippet build file will run ant in each subdirectory of the project directory,
  +            where a file called build.xml can be found.
  +            All properties whose name starts with "foo" are passed, their names are changed
to start with "bar" instead
           </p>
   
         </blockquote></td></tr>
  
  
  
  1.3       +15 -0     ant/proposal/xdocs/src/org/apache/tools/ant/taskdefs/SubAnt.xml
  
  Index: SubAnt.xml
  ===================================================================
  RCS file: /home/cvs/ant/proposal/xdocs/src/org/apache/tools/ant/taskdefs/SubAnt.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SubAnt.xml	14 May 2003 15:04:06 -0000	1.2
  +++ SubAnt.xml	14 May 2003 20:19:14 -0000	1.3
  @@ -25,6 +25,21 @@
           <p>
               this snippet build file will run ant in each subdirectory of the project directory,
               where a file called build.xml can be found.
  +            The property build.dir will have the value subant1.build in the ant projects
called by subant.
  +        </p>
  +        <pre>
  +          &lt;subant target=""&gt;
  +             &lt;propertyset&gt;
  +                  &lt;propertyref prefix="toplevel"/&gt;
  +                  &lt;mapper type="glob" from="foo*" to="bar*"/&gt;
  +             &lt;/propertyset&gt;
  +             &lt;fileset dir="." includes="*/build.xml"/&gt;
  +          &lt;/subant&gt;
  +        </pre>
  +        <p>
  +            this snippet build file will run ant in each subdirectory of the project directory,
  +            where a file called build.xml can be found.
  +            All properties whose name starts with &quot;foo&quot; are passed, their
names are changed to start with &quot;bar&quot; instead
           </p>
       </section>
   </external>
  
  
  

Mime
View raw message