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.2 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. <h3>Parameters</h3>
  11. <table border="1" cellpadding="2" cellspacing="0">
  12. <tr>
  13. <td valign="top"><b>Attribute</b></td>
  14. <td valign="top"><b>Description</b></td>
  15. <td align="center" valign="top"><b>Required</b></td>
  16. </tr>
  17. <tr>
  18. <td valign="top">message</td>
  19. <td valign="top">A message giving further information on why the build exited</td>
  20. <td align="center" valign="top">No</td>
  21. </tr>
  22. </table>
  23. <h3>Examples</h3>
  24. <pre> &lt;fail/&gt;</pre>
  25. <p>will exit the current build with no further information given.</p>
  26. <pre>
  27. BUILD FAILED
  28. build.xml:4: No message
  29. </pre>
  30. <pre> &lt;fail message=&quot;Something wrong here.&quot;/&gt;</pre>
  31. <p>will exit the current build and print something like the following to wherever
  32. your output goes:</p>
  33. <pre>
  34. BUILD FAILED
  35. build.xml:4: Something wrong here.
  36. </pre>
  37. <hr>
  38. <p align="center">Copyright &copy; 2000,2001 Apache Software Foundation. All rights
  39. Reserved.</p>
  40. </body>
  41. </html>