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.

clone.html 1.6 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>Clone Task</title>
  5. </head>
  6. <body>
  7. <h2>Clone</h2>
  8. <h3>Description</h3>
  9. <p>Clone a project reference (presumably for augmentation).</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">cloneref</td>
  19. <td valign="top">What to clone, given as a
  20. <a href="../using.html#references">reference</a> to an
  21. object with a publicly accessible clone() implementation.
  22. </td>
  23. <td valign="top" align="center">Yes</td>
  24. </tr>
  25. </table>
  26. <p>
  27. Assuming the clone operation is successful, the clone invocation supports
  28. any attributes and nested elements supported by the cloned type
  29. (the obvious exception is the &quot;cloneref&quot; attribute).
  30. <b>Please note that modifications to cloned objects may yield
  31. unpredictable results depending on the internals of the cloned class.</b>
  32. </p>
  33. <h3>Examples</h3>
  34. <p>
  35. Given a fileset <i>foo</i>:
  36. <pre> &lt;clone id="foo.txt" cloneref=&quot;foo&quot;&gt;
  37. &lt;filename name="**/*.txt" />
  38. &lt;/clone&gt;
  39. &lt;clone id="foo.nontxt" cloneref=&quot;foo&quot;&gt;
  40. &lt;filename name="**/*.txt" negate="true" />
  41. &lt;/clone&gt;
  42. </pre>
  43. Creates filesets <i>foo.txt</i> and <i>foo.nontxt</i>, which could be
  44. put to such uses as filtering some files and not others when copying.
  45. </p>
  46. <hr>
  47. <p align="center">Copyright &copy; 2005 The Apache Software Foundation. All rights
  48. Reserved.</p>
  49. </body>
  50. </html>