You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by an...@apache.org on 2003/05/14 22:19:14 UTC
cvs commit: ant/proposal/xdocs/src/org/apache/tools/ant/taskdefs SubAnt.xml
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>
+ <subant target="">
+ <propertyset>
+ <propertyref prefix="toplevel"/>
+ <mapper type="glob" from="foo*" to="bar*"/>
+ </propertyset>
+ <fileset dir="." includes="*/build.xml"/>
+ </subant>
+ </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>
+ <subant target="">
+ <propertyset>
+ <propertyref prefix="toplevel"/>
+ <mapper type="glob" from="foo*" to="bar*"/>
+ </propertyset>
+ <fileset dir="." includes="*/build.xml"/>
+ </subant>
+ </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>
</section>
</external>