mbenson 2005/05/25 14:50:15 Modified: docs/manual/CoreTasks conditions.html Log: Add resourcecount + a little cleanup Revision Changes Path 1.41 +18 -6 ant/docs/manual/CoreTasks/conditions.html Index: conditions.html =================================================================== RCS file: /home/cvs/ant/docs/manual/CoreTasks/conditions.html,v retrieving revision 1.40 retrieving revision 1.41 diff -u -r1.40 -r1.41 --- conditions.html 20 May 2005 22:36:59 -0000 1.40 +++ conditions.html 25 May 2005 21:50:15 -0000 1.41 @@ -630,20 +630,20 @@ <b>Since Ant 1.6.3</b> </p> -Verify a string is of a certain length: <pre> -<length string=" foo " trim="true" length="3"/> +<length string=" foo " trim="true" length="3" /> </pre> +<p>Verify a string is of a certain length.</p> -Verify a file is not empty: <pre> -<length file="foo" when="greater" length="0"/> +<length file="foo" when="greater" length="0" /> </pre> +<p>Verify that file <i>foo</i> is not empty.</p> <h4>isfailure</h4> -<p>Test the return code of an executable (see -<a href="exec.html"><exec></a>) for failure. <b>Since Ant 1.7</b></p> +<p>Test the return code of an executable (see the +<a href="exec.html">Exec</a> task) for failure. <b>Since Ant 1.7</b></p> <table border="1" cellpadding="2" cellspacing="0"> <tr> @@ -658,6 +658,18 @@ </tr> </table> +<h4>resourcecount</h4> +<p>This condition is a facet of the + <a href="resourcecount.html">ResourceCount</a> task. + It is used to test the size of a + <a href="../CoreTypes/resources.html#collection">resource collection</a>. + <b>Since Ant 1.7</b> +</p> + +<pre> +<resourcecount refid="myresourcecollection" when="greater" length="0" /> +</pre> +<p>Verify that a resource collection is not empty.</p> <hr> <p align="center">Copyright © 2001-2005 Apache Software Foundation. All rights Reserved.</p>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]