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.

overview.html 11 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>Overview of Ant core tasks</title>
  5. <base target="mainFrame">
  6. </head>
  7. <body>
  8. <h2>Overview of Ant core tasks</h2>
  9. <p>Given the large number of tasks available to a build designer, it may be
  10. difficult to get an overall view of what each task can do. The following
  11. table provides a short description of each task and a link to the complete
  12. documentation.</p>
  13. <table border="1" cellpadding="4" cellspacing="0">
  14. <tr valign="top">
  15. <th>Task Name</th>
  16. <th>Description</th>
  17. </tr>
  18. <tr valign="top">
  19. <td><a href="ant.html">Ant</a></td>
  20. <td><p>Runs Ant on a supplied buildfile. This can be used to build subprojects.</p></td>
  21. </tr>
  22. <tr valign="top">
  23. <td><a href="antcall.html">AntCall</a></td>
  24. <td><p>Call another target within the same build-file optionally specifying some
  25. properties.</p></td>
  26. </tr>
  27. <tr valign="top">
  28. <td><a href="antstructure.html">AntStructure</a></td>
  29. <td><p>Generates a DTD for Ant buildfiles which contains information
  30. about all tasks currently known to Ant.</p></td>
  31. </tr>
  32. <tr valign="top">
  33. <td><a href="apply.html">Apply</a></td>
  34. <td><p>Executes a system command. When the <i>os</i> attribute is specified, then
  35. the command is only executed when Ant is run on one of the specified operating
  36. systems.</p></td>
  37. </tr>
  38. <tr valign="top">
  39. <td><a href="available.html">Available</a></td>
  40. <td><p>Sets a property if a resource is available at runtime. This resource can be a
  41. file, a directory, a class in the classpath, or a JVM system resource.</p></td>
  42. </tr>
  43. <tr valign="top">
  44. <td><a href="chmod.html">Chmod</a></td>
  45. <td><p>Changes the permissions of a file or all files inside specified directories.
  46. Right now it has effect only under Unix. The permissions are also UNIX style, like
  47. the argument for the chmod command.</p></td>
  48. </tr>
  49. <tr valign="top">
  50. <td><a href="copy.html">Copy</a></td>
  51. <td><p>Copies a file or Fileset to a new file or directory.</p></td>
  52. </tr>
  53. <tr valign="top">
  54. <td><a href="copydir.html"><i>Copydir</i></a></td>
  55. <td><p><i>This task has been deprecated. Use the Copy task instead.</i></p></td>
  56. </tr>
  57. <tr valign="top">
  58. <td><a href="copyfile.html"><i>Copyfile</i></a></td>
  59. <td><p><i>This task has been deprecated. Use the Copy task instead.</i></p></td>
  60. </tr>
  61. <tr valign="top">
  62. <td><a href="cvs.html">Cvs</a></td>
  63. <td><p>Handles packages/modules retrieved from a
  64. <a href="http://www.cvshome.org/" target="_top">CVS</a> repository.</p></td>
  65. </tr>
  66. <tr valign="top">
  67. <td><a href="cvspass.html">CVSPass</a></td>
  68. <td><p>Adds entries to a .cvspass file. Adding entries to this file has the same
  69. affect as a cvs login command.</p></td>
  70. </tr>
  71. <tr valign="top">
  72. <td><a href="delete.html">Delete</a></td>
  73. <td><p>Deletes either a single file, all files in a specified directory
  74. and its sub-directories, or a set of files specified by one or more
  75. <a href="../CoreTypes/fileset.html">FileSet</a>s.</td>
  76. </tr>
  77. <tr valign="top">
  78. <td><a href="deltree.html"><i>Deltree</i></a></td>
  79. <td><p><i>This task has been deprecated. Use the Delete task instead.</i></p></td>
  80. </tr>
  81. <tr valign="top">
  82. <td><a href="ear.html">Ear</a></td>
  83. <td><p>An extension of the <a href="jar.html">Jar</a> task with special
  84. treatment for files that should end up in an Enterprise Application archive.</p></td>
  85. </tr>
  86. <tr valign="top">
  87. <td><a href="echo.html">Echo</a></td>
  88. <td><p>Echoes a message to System.out or a file.</p></td>
  89. </tr>
  90. <tr valign="top">
  91. <td><a href="exec.html">Exec</a></td>
  92. <td><p>Executes a system command. When the <i>os</i> attribute is specified, then
  93. the command is only executed when Ant is run on one of the specified operating
  94. systems.</p></td>
  95. </tr>
  96. <tr valign="top">
  97. <td><a href="execon.html">ExecOn</a></td>
  98. <td><p>Executes a system command. When the <i>os</i> attribute is specified, then
  99. the command is only executed when Ant is run on one of the specified operating
  100. systems.</p>
  101. <p>The files and/or directories of a number of <a
  102. href="../CoreTypes/fileset.html">FileSet</a>s are passed as arguments to the system
  103. command. At least one nested <code>&lt;fileset&gt;</code> is required.</p></td>
  104. </tr>
  105. <tr valign="top">
  106. <td><a href="fail.html">Fail</a></td>
  107. <td><p>Exits the current build (just throwing a BuildException), optionally printing additional information.</p></td>
  108. </tr>
  109. <tr valign="top">
  110. <td><a href="filter.html">Filter</a></td>
  111. <td><p>Sets a token filter for this project or read multiple token filter from
  112. an input file and sets these as filters.
  113. Token filters are used by all tasks that perform file copying operations
  114. through the Project commodity methods.</p></td>
  115. </tr>
  116. <tr valign="top">
  117. <td><a href="fixcrlf.html">FixCRLF</a></td>
  118. <td><p>Modifies a file to add or remove tabs, carriage returns, linefeeds, and
  119. EOF characters.</p></td>
  120. </tr>
  121. <tr valign="top">
  122. <td><a href="genkey.html">GenKey</a></td>
  123. <td><p>Generates a key in keystore.</p></td>
  124. </tr>
  125. <tr valign="top">
  126. <td><a href="get.html">Get</a></td>
  127. <td><p>Gets a file from a URL.</p></td>
  128. </tr>
  129. <tr valign="top">
  130. <td><a href="gunzip.html">GUnzip</a></td>
  131. <td><p>Expands a GZip file.</p></td>
  132. </tr>
  133. <tr valign="top">
  134. <td><a href="gzip.html">GZip</a></td>
  135. <td><p>GZips a file.</p></td>
  136. </tr>
  137. <tr valign="top">
  138. <td><a href="jar.html">Jar</a></td>
  139. <td><p>Jars a set of files.</p></td>
  140. </tr>
  141. <tr valign="top">
  142. <td><a href="java.html">Java</a></td>
  143. <td><p>Executes a Java class within the running (Ant) VM or forks another VM if
  144. specified.</p></td>
  145. </tr>
  146. <tr valign="top">
  147. <td><a href="javac.html">Javac</a></td>
  148. <td><p>Compiles a source tree within the running (Ant) VM.</p></td>
  149. </tr>
  150. <tr valign="top">
  151. <td><a href="javadoc.html">Javadoc/<i>Javadoc2</i></a></td>
  152. <td><p>Generates code documentation using the javadoc tool.</p>
  153. <p><i>The Javadoc2 task is deprecated. Use the Javadoc task
  154. instead.</i></p></td>
  155. </tr>
  156. <tr valign="top">
  157. <td><a href="mail.html">Mail</a></td>
  158. <td><p>A task to send SMTP email.</p></td>
  159. </tr>
  160. <tr valign="top">
  161. <td><a href="mkdir.html">Mkdir</a></td>
  162. <td><p>Creates a directory. Also non-existent parent directories are created, when
  163. necessary.</p></td>
  164. </tr>
  165. <tr valign="top">
  166. <td><a href="move.html">Move</a></td>
  167. <td><p>Moves a file to a new file or directory, or sets of files to
  168. a new directory.</p></td>
  169. </tr>
  170. <tr valign="top">
  171. <td><a href="patch.html">Patch</a></td>
  172. <td><p>Applies a diff file to originals.</p></td>
  173. </tr>
  174. <tr valign="top">
  175. <td><a href="pathconvert.html">PathConvert</a></td>
  176. <td><p>Converts a nested path, path reference, or fileset reference to the form usable on a
  177. specified platform and stores the result in a given property.</p></td>
  178. </tr>
  179. <tr valign="top">
  180. <td><a href="property.html">Property</a></td>
  181. <td><p>Sets a property (by name and value), or set of properties (from file or
  182. resource) in the project.</p></td>
  183. </tr>
  184. <tr valign="top">
  185. <td><a href="recorder.html">Record</a></td>
  186. <td><p>A recorder is a listener to the current build process that records the
  187. output to a file.</p></td>
  188. </tr>
  189. <tr valign="top">
  190. <td><a href="rename.html"><i>Rename</i></a></td>
  191. <td><p><i>This task has been deprecated. Use the Move task instead.</i></p></td>
  192. </tr>
  193. <tr valign="top">
  194. <td><a href="replace.html">Replace</a></td>
  195. <td><p>Replace is a directory based task for replacing the occurrence of a given string with another string
  196. in selected file.</p></td>
  197. </tr>
  198. <tr valign="top">
  199. <td><a href="rmic.html">Rmic</a></td>
  200. <td><p>Runs the rmic compiler for a certain class.</p></td>
  201. </tr>
  202. <tr valign="top">
  203. <td><a href="signjar.html">SignJar</a></td>
  204. <td><p>Signs a jar or zip file with the javasign command line tool.</p></td>
  205. </tr>
  206. <tr valign="top">
  207. <td><a href="sleep.html">Sleep</a></td>
  208. <td><p> A task for sleeping a short period of time, useful when a build or
  209. deployment process requires an interval between tasks.</p></td>
  210. </tr>
  211. <tr valign="top">
  212. <td><a href="sql.html">Sql</a></td>
  213. <td><p>Executes a series of SQL statements via JDBC to a database. Statements
  214. can either be read in from a text file using the <i>src</i> attribute or from
  215. between the enclosing SQL tags.</p></td>
  216. </tr>
  217. <tr valign="top">
  218. <td><a href="style.html">Style</a></td>
  219. <td><p>Process a set of documents via XSLT.</p></td>
  220. </tr>
  221. <tr valign="top">
  222. <td><a href="tar.html">Tar</a></td>
  223. <td><p>Creates a tar archive.</p></td>
  224. </tr>
  225. <tr valign="top">
  226. <td><a href="taskdef.html">Taskdef</a></td>
  227. <td><p>Adds a task definition to the current project, such that this new task can be
  228. used in the current project.</p></td>
  229. </tr>
  230. <tr valign="top">
  231. <td><a href="touch.html">Touch</a></td>
  232. <td><p>Changes the modification time of a file and possibly creates it at
  233. the same time.</p></td>
  234. </tr>
  235. <tr valign="top">
  236. <td><a href="tstamp.html">TStamp</a></td>
  237. <td><p>Sets the <code>DSTAMP</code>, <code>TSTAMP</code>, and
  238. <code>TODAY</code> properties in the current project based on
  239. the current date and time.</p></td>
  240. </tr>
  241. <tr valign="top">
  242. <td><a href="typedef.html">Typedef</a></td>
  243. <td><p>Adds a data type definition to the current project, such that this
  244. new type can be used in the current project.</p></td>
  245. </tr>
  246. <tr valign="top">
  247. <td><a href="unzip.html">Unjar</a></td>
  248. <td><p>Unzips a jarfile.</p></td>
  249. </tr>
  250. <tr valign="top">
  251. <td><a href="untar.html">Untar</a></td>
  252. <td><p>Untars a tarfile.</p></td>
  253. </tr>
  254. <tr valign="top">
  255. <td><a href="unzip.html">Unwar</a></td>
  256. <td><p>Unzips a warfile.</p></td>
  257. </tr>
  258. <tr valign="top">
  259. <td><a href="unzip.html">Unzip</a></td>
  260. <td><p>Unzips a zipfile.</p></td>
  261. </tr>
  262. <tr valign="top">
  263. <td><a href="uptodate.html">Uptodate</a></td>
  264. <td><p>Sets a property if a target files are more up to date than a set of
  265. Source files.</p></td>
  266. </tr>
  267. <tr valign="top">
  268. <td><a href="war.html">War</a></td>
  269. <td><p>An extension of the <a href="jar.html">Jar</a> task with special
  270. treatment for files that should end up in the <code>WEB-INF/lib</code>,
  271. <code>WEB-INF/classes</code> or <code>WEB-INF</code> directories of the
  272. Web Application Archive.</p></td>
  273. </tr>
  274. <tr valign="top">
  275. <td><a href="zip.html">Zip</a></td>
  276. <td><p>Creates a zipfile.</p></td>
  277. </tr>
  278. </table>
  279. <hr>
  280. <p align="center">Copyright &copy; 2000,2001 Apache Software Foundation. All rights
  281. Reserved.</p>
  282. </body>
  283. </html>