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.

do.html 1.8 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>Do Task</title>
  5. </head>
  6. <body>
  7. <h2><a name="echo">Do</a></h2>
  8. <h3>Description</h3>
  9. <p>
  10. This task is similar to the
  11. <a href="antcall.html"><code>&lt;antcall&gt;</code></a>
  12. task; however, <code>&lt;do&gt;</code> will not
  13. re-run common dependencies. Using
  14. <code>&lt;antcall&gt;</code> to run several targets that all have
  15. the same dependency(s) will cause the dependent
  16. target(s) for each called target to be run again.
  17. This results in common targets, such as &quot;init&quot;-type targets,
  18. being run many times. Using <code>&lt;do&gt;</code>
  19. instead of <code>&lt;antcall&gt;</code> prevents any common dependencies
  20. from being run more than once.
  21. </p>
  22. <p>
  23. <strong>Note:</strong> The <code>&lt;do&gt;</code> task will still re-run
  24. any dependent target that was run prior to the <code>&lt;do&gt;</code> task(s)
  25. being run.
  26. <h3>Parameters</h3>
  27. <table border="1" cellpadding="2" cellspacing="0">
  28. <tr>
  29. <td valign="top"><b>Attribute</b></td>
  30. <td valign="top"><b>Description</b></td>
  31. <td align="center" valign="top"><b>Required</b></td>
  32. </tr>
  33. <tr>
  34. <td valign="top">target</td>
  35. <td valign="top">The target to run.</td>
  36. <td valign="top" align="center">Yes</td>
  37. </tr>
  38. </table>
  39. <h3>Examples</h3>
  40. <pre>
  41. &lt;target name=&quot;all&quot;&gt;
  42. &lt;do target=&quot;target1&quot;/&gt;
  43. &lt;do target=&quot;target2&quot;/&gt;
  44. &lt;/target&gt;
  45. </pre>
  46. will run the targets <code>target1</code> and <code>target2</code>.
  47. If both <code>target1</code> and <code>target2</code> depend on,
  48. for example, the <code>init</code> target, it will only be run once
  49. rather than once for <code>target1</code> and again for <code>target2</code>.
  50. <hr>
  51. <p align="center">Copyright &copy; 2002 Apache Software Foundation.
  52. All rights Reserved.</p>
  53. </body>
  54. </html>