You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by jh...@apache.org on 2007/12/03 14:36:43 UTC
svn commit: r600530 - /ant/core/trunk/docs/manual/CoreTypes/dirset.html
Author: jhm
Date: Mon Dec 3 05:36:43 2007
New Revision: 600530
URL: http://svn.apache.org/viewvc?rev=600530&view=rev
Log:
Example as discussed on user@ant >>Select "marked" directories<<
Modified:
ant/core/trunk/docs/manual/CoreTypes/dirset.html
Modified: ant/core/trunk/docs/manual/CoreTypes/dirset.html
URL: http://svn.apache.org/viewvc/ant/core/trunk/docs/manual/CoreTypes/dirset.html?rev=600530&r1=600529&r2=600530&view=diff
==============================================================================
--- ant/core/trunk/docs/manual/CoreTypes/dirset.html (original)
+++ ant/core/trunk/docs/manual/CoreTypes/dirset.html Mon Dec 3 05:36:43 2007
@@ -92,6 +92,7 @@
</table>
<h4>Examples</h4>
+
<blockquote><pre>
<dirset dir="${build.dir}">
<include name="apps/**/classes"/>
@@ -101,6 +102,7 @@
<p>Groups all directories named <code>classes</code> found under the
<code>apps</code> subdirectory of <code>${build.dir}</code>, except those
that have the text <code>Test</code> in their name.</p>
+
<blockquote><pre>
<dirset dir="${build.dir}">
<patternset id="non.test.classes">
@@ -112,6 +114,7 @@
<p>Groups the same directories as the above example, but also establishes
a PatternSet that can be referenced in other
<code><dirset></code> elements, rooted at a different directory.</p>
+
<blockquote><pre>
<dirset dir="${debug_build.dir}">
<patternset refid="non.test.classes"/>
@@ -120,6 +123,15 @@
<p>Groups all directories in directory <code>${debug_build.dir}</code>,
using the same patterns as the above example.</p>
+<blockquote><pre>
+<dirset id="dirset" dir="${workingdir}">
+ <present targetdir="${workingdir}">
+ <mapper type="glob" from="*" to="*/${markerfile}" />
+ </present>
+</dirset>
+</pre></blockquote>
+<p>Selects all directories somewhere under <code>${workingdir}</code>
+which contain a <code>${markerfile}</code>.</p>
</body>