|
|
@@ -652,7 +652,10 @@ platforms. |
|
|
|
using the nested <control> element, which denotes a |
|
|
|
<a href="#resources">resources</a> collection.</p> |
|
|
|
<h4>Examples</h4> |
|
|
|
<p>The following selects files a, b, c, and d:</p> |
|
|
|
<p>Assuming the namespace settings |
|
|
|
<pre><code> rsel="antlib:org.apache.tools.ant.types.resources.selectors" |
|
|
|
rcmp="antlib:org.apache.tools.ant.types.resources.comparators" |
|
|
|
</code></pre> The following selects files a, b, c, and d:</p> |
|
|
|
<pre> |
|
|
|
<restrict> |
|
|
|
<fileset dir="src" includes="a,b,c,d,e,f,g" /> |
|
|
@@ -764,8 +767,12 @@ platforms. |
|
|
|
<date /> |
|
|
|
</reverse> |
|
|
|
</sort></pre> |
|
|
|
<p>This takes all files from <i>foo</i> and sorts it by modification date in reverse order. |
|
|
|
Because 'reverse' is in an internal antlib you have to set the namespace explicitly.</p> |
|
|
|
<p>This takes all files from <i>foo</i> |
|
|
|
and sorts them by modification date in reverse order. |
|
|
|
Because the resource comparators used (<code><reverse></code> |
|
|
|
and <code><date></code>) are in an internal antlib |
|
|
|
their namespace must be set explicitly. |
|
|
|
</p> |
|
|
|
|
|
|
|
</blockquote> |
|
|
|
|
|
|
|