Browse Source

added an example usage of subant with propertyset - request of Dominique Devienne

PR:19181


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274581 13f79535-47bb-0310-9956-ffa450edef68
master
Antoine Levy-Lambert 22 years ago
parent
commit
8d0a7dc50a
2 changed files with 31 additions and 1 deletions
  1. +16
    -1
      docs/manual/CoreTasks/subant.html
  2. +15
    -0
      proposal/xdocs/src/org/apache/tools/ant/taskdefs/SubAnt.xml

+ 16
- 1
docs/manual/CoreTasks/subant.html View File

@@ -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>


+ 15
- 0
proposal/xdocs/src/org/apache/tools/ant/taskdefs/SubAnt.xml View File

@@ -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>

Loading…
Cancel
Save