ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r518153 - /ant/core/trunk/docs/manual/CoreTasks/fail.html
Date Wed, 14 Mar 2007 14:13:37 GMT
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>  &lt;fail/&gt;</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>
+&lt;fail message=&quot;Files are missing.&quot;&gt;
+    &lt;condition&gt;
+        &lt;not&gt;
+            &lt;resourcecount count=&quot;2&quot;&gt;
+                &lt;fileset id=&quot;fs&quot; dir=&quot;.&quot; includes=&quot;one.txt,two.txt&quot;/&gt;
+            &lt;/resourcecount&gt;
+        &lt;/not&gt;
+    &lt;/condition&gt;
+&lt;/fail&gt;
+</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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message