diff --git a/docs/manual/CoreTasks/fail.html b/docs/manual/CoreTasks/fail.html index 8a38ac2bc..0eb17416f 100644 --- a/docs/manual/CoreTasks/fail.html +++ b/docs/manual/CoreTasks/fail.html @@ -29,6 +29,7 @@

Exits the current build (just throwing a BuildException), optionally printing additional information.

The message of the Exception can be set via the message attribute or character data nested into the element.

+

Parameters

@@ -72,6 +73,7 @@ or character data nested into the element.

Examples

+
  <fail/>

will exit the current build with no further information given.

@@ -122,7 +124,19 @@ BUILD FAILED
 build.xml:2: condition satisfied
 
- +
+<fail message="Files are missing.">
+    <condition>
+        <not>
+            <resourcecount count="2">
+                <fileset id="fs" dir="." includes="one.txt,two.txt"/>
+            </resourcecount>
+        </not>
+    </condition>
+</fail>
+
+

Will check that both files one.txt and two.txt are present otherwise the build +will fail.