|
|
@@ -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 @@ or character data nested into the element.</p> |
|
|
|
</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 FAILED |
|
|
|
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> |
|
|
|