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.

ant.html 2.3 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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="ant">Ant</a></h2>
  8. <h3>Description</h3>
  9. <p>Runs Ant on a supplied buildfile. This can be used to build subprojects.</p>
  10. <p>When the <i>antfile</i> attribute is omitted, the file &quot;build.xml&quot;
  11. in the supplied directory (<i>dir</i> attribute) is used.</p>
  12. <p>If no target attribute is supplied, the default target of the new project is
  13. used.</p>
  14. <p>The properties of the current project will be available in the new project.
  15. These properties will override the properties that are set in the new project.
  16. (See also the <a href="property.html">property task</a>). You can set properties
  17. in the new project from the old project by using nested property tags. This
  18. allows you to parameterize your subprojects.</p>
  19. <h3>Parameters</h3>
  20. <table border="1" cellpadding="2" cellspacing="0">
  21. <tr>
  22. <td valign="top"><b>Attribute</b></td>
  23. <td valign="top"><b>Description</b></td>
  24. <td align="center" valign="top"><b>Required</b></td>
  25. </tr>
  26. <tr>
  27. <td valign="top">antfile</td>
  28. <td valign="top">the buildfile to use. Defaults to &quot;build.xml&quot;.</td>
  29. <td valign="top" align="center">No</td>
  30. </tr>
  31. <tr>
  32. <td valign="top">dir</td>
  33. <td valign="top">the directory to use as a basedir for the new Ant project.
  34. Defaults to the current directory.</td>
  35. <td valign="top" align="center">No</td>
  36. </tr>
  37. <tr>
  38. <td valign="top">target</td>
  39. <td valign="top">the target of the new Ant project that should be executed.</td>
  40. <td valign="top" align="center">No</td>
  41. </tr>
  42. <tr>
  43. <td valign="top">output</td>
  44. <td valign="top">Filename to write the ant output to.
  45. </td>
  46. <td align="center" valign="top">No</td>
  47. </tr>
  48. </table>
  49. <h3>Examples</h3>
  50. <pre>
  51. &lt;ant antfile=&quot;subproject/subbuild.xml&quot; dir=&quot;subproject&quot; target=&quot;compile&quot;/&gt;
  52. &lt;ant dir=&quot;subproject&quot;/&gt;
  53. &lt;ant antfile=&quot;subproject/property_based_subbuild.xml&quot;&gt;
  54. &lt;property name=&quot;param1&quot; value=&quot;version 1.x&quot;/&gt;
  55. &lt;property file=&quot;config/subproject/default.properties&quot;/&gt;
  56. &lt;/ant&gt;
  57. </pre>
  58. <hr>
  59. <p align="center">Copyright &copy; 2000,2001 Apache Software Foundation. All rights
  60. Reserved.</p>
  61. </body>
  62. </html>