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.7 KiB

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