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.

subant.html 16 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>Subant
  5. Task</title>
  6. </head>
  7. <body bgcolor="#ffffff" text="#000000" link="#525D76"
  8. alink="#525D76" vlink="#525D76">
  9. <table border="0" width="100%" cellspacing="4">
  10. <!-- PAGE HEADER -->
  11. <tr>
  12. <td>
  13. <table border="0" width="100%"><tr>
  14. <td valign="bottom">
  15. <font size="+3" face="arial,helvetica,sanserif"><strong>Subant
  16. Task</strong></font>
  17. <br><font face="arial,helvetica,sanserif"><i>EXPERIMENTAL:</i> This task is experimental and may be under continual change till Ant1.6 ships; it may even be omitted from the product.</font>
  18. </td>
  19. <td>
  20. <!-- PROJECT LOGO -->
  21. <a href="http://ant.apache.org/">
  22. <img src="../../images/ant_logo_large.gif" align="right" alt="Apache Ant" border="0"/>
  23. </a>
  24. </td>
  25. </tr></table>
  26. </td>
  27. </tr>
  28. <!-- START RIGHT SIDE MAIN BODY -->
  29. <tr>
  30. <td valign="top" align="left">
  31. <!-- Applying task/description -->
  32. <!-- Start Description -->
  33. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  34. <tr><td>&nbsp;</td></tr>
  35. <tr><td bgcolor="#525D76">
  36. <font color="#ffffff" face="arial,helvetica.sanserif">
  37. <a name="description">
  38. <strong>Description</strong></a></font>
  39. </td></tr>
  40. <tr><td><blockquote>
  41. <p>
  42. <i>EXPERIMENTAL:</i> This task is experimental and may be under continual
  43. change till Ant1.6 ships; it may even be omitted from the product.
  44. </p>
  45. <p>
  46. Calls a given target for all defined sub-builds. This is an extension
  47. of ant for bulk project execution.
  48. </p>
  49. </blockquote></td></tr>
  50. </table>
  51. <!-- End Description -->
  52. <!-- Start Attributes -->
  53. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  54. <tr><td>&nbsp;</td></tr>
  55. <tr><td bgcolor="#525D76">
  56. <font color="#ffffff" face="arial,helvetica.sanserif">
  57. <a name="attributes">
  58. <strong>Parameters</strong></a></font>
  59. </td></tr>
  60. <tr><td><blockquote>
  61. <table>
  62. <tr>
  63. <td bgcolor="#cccccc" valign="top" align="left">
  64. <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Attribute</b></font>
  65. </td>
  66. <td bgcolor="#cccccc" valign="top" align="left">
  67. <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Description</b></font>
  68. </td>
  69. <td bgcolor="#cccccc" valign="top" align="left">
  70. <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Type</b></font>
  71. </td>
  72. <td bgcolor="#cccccc" valign="top" align="left">
  73. <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Requirement</b></font>
  74. </td>
  75. </tr>
  76. <!-- Attribute Group -->
  77. <!-- Attribute Group -->
  78. <!-- Attribute -->
  79. <tr>
  80. <td bgcolor="#eeeeee" valign="top" align="left">
  81. <font color="#000000" size="-1" face="arial,helvetica,sanserif">antfile</font>
  82. </td>
  83. <td bgcolor="#eeeeee" valign="top" align="left">
  84. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Sets the default build file name to append to directory names found in the build path -default "build.xml"</font>
  85. </td>
  86. <td bgcolor="#eeeeee" valign="top" align="left">
  87. <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
  88. </td>
  89. <td bgcolor="#eeeeee" valign="top" align="left" rowspan="7">
  90. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Optional</font>
  91. </td>
  92. </tr>
  93. <!-- Attribute -->
  94. <tr>
  95. <td bgcolor="#eeeeee" valign="top" align="left">
  96. <font color="#000000" size="-1" face="arial,helvetica,sanserif">buildpath</font>
  97. </td>
  98. <td bgcolor="#eeeeee" valign="top" align="left">
  99. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Set the buildpath to be used to find sub-projects.</font>
  100. </td>
  101. <td bgcolor="#eeeeee" valign="top" align="left">
  102. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Path</font>
  103. </td>
  104. </tr>
  105. <!-- Attribute -->
  106. <tr>
  107. <td bgcolor="#eeeeee" valign="top" align="left">
  108. <font color="#000000" size="-1" face="arial,helvetica,sanserif">buildpathref</font>
  109. </td>
  110. <td bgcolor="#eeeeee" valign="top" align="left">
  111. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Buildpath to use, by reference.</font>
  112. </td>
  113. <td bgcolor="#eeeeee" valign="top" align="left">
  114. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Reference</font>
  115. </td>
  116. </tr>
  117. <!-- Attribute -->
  118. <tr>
  119. <td bgcolor="#eeeeee" valign="top" align="left">
  120. <font color="#000000" size="-1" face="arial,helvetica,sanserif">failonerror</font>
  121. </td>
  122. <td bgcolor="#eeeeee" valign="top" align="left">
  123. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Sets whether to fail with a build exception on error, or go on.</font>
  124. </td>
  125. <td bgcolor="#eeeeee" valign="top" align="left">
  126. <font color="#000000" size="-1" face="arial,helvetica,sanserif">boolean</font>
  127. </td>
  128. </tr>
  129. <!-- Attribute -->
  130. <tr>
  131. <td bgcolor="#eeeeee" valign="top" align="left">
  132. <font color="#000000" size="-1" face="arial,helvetica,sanserif">inheritall</font>
  133. </td>
  134. <td bgcolor="#eeeeee" valign="top" align="left">
  135. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Corresponds to <code>&lt;ant&gt;</code>'s <code>inheritall</code> attribute.</font>
  136. </td>
  137. <td bgcolor="#eeeeee" valign="top" align="left">
  138. <font color="#000000" size="-1" face="arial,helvetica,sanserif">boolean</font>
  139. </td>
  140. </tr>
  141. <!-- Attribute -->
  142. <tr>
  143. <td bgcolor="#eeeeee" valign="top" align="left">
  144. <font color="#000000" size="-1" face="arial,helvetica,sanserif">inheritrefs</font>
  145. </td>
  146. <td bgcolor="#eeeeee" valign="top" align="left">
  147. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Corresponds to <code>&lt;ant&gt;</code>'s <code>inheritrefs</code> attribute.</font>
  148. </td>
  149. <td bgcolor="#eeeeee" valign="top" align="left">
  150. <font color="#000000" size="-1" face="arial,helvetica,sanserif">boolean</font>
  151. </td>
  152. </tr>
  153. <!-- Attribute -->
  154. <tr>
  155. <td bgcolor="#eeeeee" valign="top" align="left">
  156. <font color="#000000" size="-1" face="arial,helvetica,sanserif">target</font>
  157. </td>
  158. <td bgcolor="#eeeeee" valign="top" align="left">
  159. <font color="#000000" size="-1" face="arial,helvetica,sanserif"></font>
  160. </td>
  161. <td bgcolor="#eeeeee" valign="top" align="left">
  162. <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
  163. </td>
  164. </tr>
  165. </table>
  166. </blockquote></td></tr>
  167. </table>
  168. <!-- End Attributes -->
  169. <!-- Start Elements -->
  170. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  171. <tr><td>&nbsp;</td></tr>
  172. <tr><td bgcolor="#525D76">
  173. <font color="#ffffff" face="arial,helvetica.sanserif">
  174. <a name="elements">
  175. <strong>Parameters as nested elements</strong></a></font>
  176. </td></tr>
  177. <tr><td><blockquote>
  178. <!-- Start Element -->
  179. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  180. <tr><td>&nbsp;</td></tr>
  181. <tr><td bgcolor="#828DA6">
  182. <font color="#ffffff" face="arial,helvetica.sanserif" size="-1">
  183. <strong>dirset</strong> (org.apache.tools.ant.types.DirSet)</font>
  184. </td></tr>
  185. <tr><td><blockquote>
  186. Adds a directory set to the implicit build path. <p> <em>Note that the directories will be added to the build path in no particular order, so if order is significant, one should use a file list instead!</em>
  187. <short-description><![CDATA[Adds a directory set to the implicit build path.]]></short-description>
  188. <description>
  189. <![CDATA[Adds a directory set to the implicit build path. <p> <em>Note that the directories will be added to the build path in no particular order, so if order is significant, one should use a file list instead!</em>]]>
  190. </description>
  191. </blockquote></td></tr>
  192. </table>
  193. <!-- End Element -->
  194. <!-- Start Element -->
  195. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  196. <tr><td>&nbsp;</td></tr>
  197. <tr><td bgcolor="#828DA6">
  198. <font color="#ffffff" face="arial,helvetica.sanserif" size="-1">
  199. <strong>filelist</strong> (org.apache.tools.ant.types.FileList)</font>
  200. </td></tr>
  201. <tr><td><blockquote>
  202. Adds an ordered file list to the implicit build path. <p> <em>Note that contrary to file and directory sets, file lists can reference non-existent files or directories!</em>
  203. <short-description><![CDATA[Adds an ordered file list to the implicit build path.]]></short-description>
  204. <description>
  205. <![CDATA[Adds an ordered file list to the implicit build path. <p> <em>Note that contrary to file and directory sets, file lists can reference non-existent files or directories!</em>]]>
  206. </description>
  207. </blockquote></td></tr>
  208. </table>
  209. <!-- End Element -->
  210. <!-- Start Element -->
  211. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  212. <tr><td>&nbsp;</td></tr>
  213. <tr><td bgcolor="#828DA6">
  214. <font color="#ffffff" face="arial,helvetica.sanserif" size="-1">
  215. <strong>fileset</strong> (org.apache.tools.ant.types.FileSet)</font>
  216. </td></tr>
  217. <tr><td><blockquote>
  218. Adds a file set to the implicit build path. <p> <em>Note that the directories will be added to the build path in no particular order, so if order is significant, one should use a file list instead!</em>
  219. <short-description><![CDATA[Adds a file set to the implicit build path.]]></short-description>
  220. <description>
  221. <![CDATA[Adds a file set to the implicit build path. <p> <em>Note that the directories will be added to the build path in no particular order, so if order is significant, one should use a file list instead!</em>]]>
  222. </description>
  223. </blockquote></td></tr>
  224. </table>
  225. <!-- End Element -->
  226. <!-- Start Element -->
  227. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  228. <tr><td>&nbsp;</td></tr>
  229. <tr><td bgcolor="#828DA6">
  230. <font color="#ffffff" face="arial,helvetica.sanserif" size="-1">
  231. <strong>property</strong> (org.apache.tools.ant.taskdefs.Property)</font>
  232. </td></tr>
  233. <tr><td><blockquote>
  234. Corresponds to <code>&lt;ant&gt;</code>'s nested <code>&lt;property&gt;</code> element.
  235. <short-description><![CDATA[Corresponds to <code>&lt;ant&gt;</code>'s nested <code>&lt;property&gt;</code> element.]]></short-description>
  236. <description>
  237. <![CDATA[Corresponds to <code>&lt;ant&gt;</code>'s nested <code>&lt;property&gt;</code> element.]]>
  238. </description>
  239. </blockquote></td></tr>
  240. </table>
  241. <!-- End Element -->
  242. <!-- Start Element -->
  243. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  244. <tr><td>&nbsp;</td></tr>
  245. <tr><td bgcolor="#828DA6">
  246. <font color="#ffffff" face="arial,helvetica.sanserif" size="-1">
  247. <strong>propertyset</strong> (org.apache.tools.ant.types.PropertySet)</font>
  248. </td></tr>
  249. <tr><td><blockquote>
  250. Corresponds to <code>&lt;ant&gt;</code>'s nested <code>&lt;propertyset&gt;</code> element.
  251. <short-description><![CDATA[Corresponds to <code>&lt;ant&gt;</code>'s nested <code>&lt;propertyset&gt;</code> element.]]></short-description>
  252. <description>
  253. <![CDATA[Corresponds to <code>&lt;ant&gt;</code>'s nested <code>&lt;propertyset&gt;</code> element.]]>
  254. </description>
  255. </blockquote></td></tr>
  256. </table>
  257. <!-- End Element -->
  258. <!-- Start Element -->
  259. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  260. <tr><td>&nbsp;</td></tr>
  261. <tr><td bgcolor="#828DA6">
  262. <font color="#ffffff" face="arial,helvetica.sanserif" size="-1">
  263. <strong>reference</strong> (org.apache.tools.ant.taskdefs.Ant.Reference)</font>
  264. </td></tr>
  265. <tr><td><blockquote>
  266. Corresponds to <code>&lt;ant&gt;</code>'s nested <code>&lt;reference&gt;</code> element.
  267. <short-description><![CDATA[Corresponds to <code>&lt;ant&gt;</code>'s nested <code>&lt;reference&gt;</code> element.]]></short-description>
  268. <description>
  269. <![CDATA[Corresponds to <code>&lt;ant&gt;</code>'s nested <code>&lt;reference&gt;</code> element.]]>
  270. </description>
  271. </blockquote></td></tr>
  272. </table>
  273. <!-- End Element -->
  274. <!-- Start Element -->
  275. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  276. <tr><td>&nbsp;</td></tr>
  277. <tr><td bgcolor="#828DA6">
  278. <font color="#ffffff" face="arial,helvetica.sanserif" size="-1">
  279. <strong>buildpath</strong> (org.apache.tools.ant.types.Path)</font>
  280. </td></tr>
  281. <tr><td><blockquote>
  282. Creates a nested build path, and add it to the implicit build path.
  283. <short-description><![CDATA[Creates a nested build path, and add it to the implicit build path.]]></short-description>
  284. <description>
  285. <![CDATA[Creates a nested build path, and add it to the implicit build path.]]>
  286. </description>
  287. </blockquote></td></tr>
  288. </table>
  289. <!-- End Element -->
  290. <!-- Start Element -->
  291. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  292. <tr><td>&nbsp;</td></tr>
  293. <tr><td bgcolor="#828DA6">
  294. <font color="#ffffff" face="arial,helvetica.sanserif" size="-1">
  295. <strong>buildpathelement</strong> (org.apache.tools.ant.types.Path.PathElement)</font>
  296. </td></tr>
  297. <tr><td><blockquote>
  298. Creates a nested <code>&lt;buildpathelement&gt;</code>, and add it to the implicit build path.
  299. <short-description><![CDATA[Creates a nested <code>&lt;buildpathelement&gt;</code>, and add it to the implicit build path.]]></short-description>
  300. <description>
  301. <![CDATA[Creates a nested <code>&lt;buildpathelement&gt;</code>, and add it to the implicit build path.]]>
  302. </description>
  303. </blockquote></td></tr>
  304. </table>
  305. <!-- End Element -->
  306. </blockquote></td></tr>
  307. </table>
  308. <!-- End Elements -->
  309. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  310. <tr><td>&nbsp;</td></tr>
  311. <tr><td bgcolor="#525D76">
  312. <font color="#ffffff" face="arial,helvetica.sanserif">
  313. <a name="examples">
  314. <strong>Example</strong></a></font>
  315. </td></tr>
  316. <tr><td><blockquote>
  317. <pre>
  318. &lt;project name="subant" default="subant1"&gt;
  319. &lt;property name="build.dir" value="subant.build"/&gt;
  320. &lt;target name="subant1"&gt;
  321. &lt;subant failonerror="false" target=""&gt;
  322. &lt;property name="build.dir" value="subant1.build"/&gt;
  323. &lt;property name="not.overloaded" value="not.overloaded"/&gt;
  324. &lt;dirset dir="." includes="*"/&gt;
  325. &lt;/subant&gt;
  326. &lt;/target&gt;
  327. &lt;/project&gt;
  328. </pre>
  329. <p>
  330. this snippet build file will run ant in each subdirectory of the project directory,
  331. where a file called build.xml can be found.
  332. </p>
  333. </blockquote></td></tr>
  334. </table>
  335. </td>
  336. </tr>
  337. <!-- END RIGHT SIDE MAIN BODY -->
  338. <!-- FOOTER SEPARATOR -->
  339. <tr>
  340. <td>
  341. <hr noshade="" size="1"/>
  342. </td>
  343. </tr>
  344. <!-- PAGE FOOTER -->
  345. <tr>
  346. <td>
  347. <div align="center"><font color="#525D76" size="-1"><em>
  348. Copyright &#169; 2000-2003, Apache Software Foundation
  349. </em></font></div>
  350. </td>
  351. </tr>
  352. </table>
  353. </body>
  354. </html>