Author: jhm Date: Wed Mar 14 07:13:36 2007 New Revision: 518153 URL: http://svn.apache.org/viewvc?view=rev&rev=518153 Log: Example using <resourcecount> inside <fail>
Modified: ant/core/trunk/docs/manual/CoreTasks/fail.html Modified: ant/core/trunk/docs/manual/CoreTasks/fail.html URL: http://svn.apache.org/viewvc/ant/core/trunk/docs/manual/CoreTasks/fail.html?view=diff&rev=518153&r1=518152&r2=518153 ============================================================================== --- ant/core/trunk/docs/manual/CoreTasks/fail.html (original) +++ ant/core/trunk/docs/manual/CoreTasks/fail.html Wed Mar 14 07:13:36 2007 @@ -29,6 +29,7 @@ <p>Exits the current build (just throwing a BuildException), optionally printing additional information.</p> <p>The message of the Exception can be set via the message attribute or character data nested into the element.</p> + <h3>Parameters</h3> <table border="1" cellpadding="2" cellspacing="0"> <tr> @@ -72,6 +73,7 @@ </p> <h3>Examples</h3> + <pre> <fail/></pre> <p>will exit the current build with no further information given.</p> <pre> @@ -122,7 +124,19 @@ build.xml:2: condition satisfied </pre> - +<pre> +<fail message="Files are missing."> + <condition> + <not> + <resourcecount count="2"> + <fileset id="fs" dir="." includes="one.txt,two.txt"/> + </resourcecount> + </not> + </condition> +</fail> +</pre> +<p>Will check that both files <i>one.txt</i> and <i>two.txt</i> are present otherwise the build +will fail.</p> </body> </html> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]