|
|
@@ -728,6 +728,23 @@ platforms. |
|
|
|
from the Classpath (already used while compiling). |
|
|
|
</p> |
|
|
|
|
|
|
|
<pre> |
|
|
|
<project> |
|
|
|
<filelist id="allfiles" dir="${ant.home}/bin" files="ant.cmd,foo.txt,ant.bat,bar.txt,ant"/> |
|
|
|
<restrict id="missingfiles"> |
|
|
|
<filelist refid="allfiles"/> |
|
|
|
<rsel:not xmlns:rsel="antlib:org.apache.tools.ant.types.resources.selectors"> |
|
|
|
<rsel:exists/> |
|
|
|
</rsel:not> |
|
|
|
</restrict> |
|
|
|
<echo>These files are missed: ${toString:missingfiles}</echo> |
|
|
|
</project> |
|
|
|
</pre> |
|
|
|
<p>The resource collection <i>allfiles</i> defines a list of files which are expected. The restrict |
|
|
|
<i>missingfiles</i> uses the <tt><not><exists></tt> selector for getting all files |
|
|
|
which are not present. Finally we use the <i>toString:</i> <a href="../using.html#pathshortcut">pathshortcut</a> for |
|
|
|
getting them in a readable form: <tt>[echo] These files are missed: ....foo.txt;....bar.txt</tt></p> |
|
|
|
|
|
|
|
</blockquote> |
|
|
|
|
|
|
|
<h4><a name="sort">sort</a></h4> |
|
|
|