You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

fail.html 1.4 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>Ant User Manual</title>
  5. </head>
  6. <body>
  7. <h2><a name="fail">Fail</a></h2>
  8. <h3>Description</h3>
  9. <p>Exits the current build (just throwing a BuildException), optionally printing additional information.</p>
  10. <p>The message of the Exception can be set via the message attribute
  11. or character data nested into the element.</p>
  12. <h3>Parameters</h3>
  13. <table border="1" cellpadding="2" cellspacing="0">
  14. <tr>
  15. <td valign="top"><b>Attribute</b></td>
  16. <td valign="top"><b>Description</b></td>
  17. <td align="center" valign="top"><b>Required</b></td>
  18. </tr>
  19. <tr>
  20. <td valign="top">message</td>
  21. <td valign="top">A message giving further information on why the build exited</td>
  22. <td align="center" valign="top">No</td>
  23. </tr>
  24. </table>
  25. <h3>Examples</h3>
  26. <pre> &lt;fail/&gt;</pre>
  27. <p>will exit the current build with no further information given.</p>
  28. <pre>
  29. BUILD FAILED
  30. build.xml:4: No message
  31. </pre>
  32. <pre> &lt;fail message=&quot;Something wrong here.&quot;/&gt;</pre>
  33. <p>will exit the current build and print something like the following to wherever
  34. your output goes:</p>
  35. <pre>
  36. BUILD FAILED
  37. build.xml:4: Something wrong here.
  38. </pre>
  39. <pre> &lt;fail&gt;Something wrong here.&lt;/fail&gt;</pre>
  40. <p>will give the same result as above.</p>
  41. <hr>
  42. <p align="center">Copyright &copy; 2000,2001 Apache Software Foundation. All rights
  43. Reserved.</p>
  44. </body>
  45. </html>