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.

copyfile.html 1.8 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>Copyfile Task</title>
  5. </head>
  6. <body>
  7. <h2><a name="copyfile">Copyfile</a></h2>
  8. <h3><i>Deprecated</i></h3>
  9. <p><i>This task has been deprecated. Use the Copy task instead.</i></p>
  10. <h3>Description</h3>
  11. <p>Copies a file from the source to the destination. The file is only copied if
  12. the source file is newer than the destination file, or when the destination file
  13. does not exist.</p>
  14. <h3>Parameters</h3>
  15. <table border="1" cellpadding="2" cellspacing="0">
  16. <tr>
  17. <td valign="top"><b>Attribute</b></td>
  18. <td valign="top"><b>Description</b></td>
  19. <td align="center" valign="top"><b>Required</b></td>
  20. </tr>
  21. <tr>
  22. <td valign="top">src</td>
  23. <td valign="top">the filename of the file to copy.</td>
  24. <td valign="top" align="center">Yes</td>
  25. </tr>
  26. <tr>
  27. <td valign="top">dest</td>
  28. <td valign="top">the filename of the file where to copy to.</td>
  29. <td valign="top" align="center">Yes</td>
  30. </tr>
  31. <tr>
  32. <td valign="top">filtering</td>
  33. <td valign="top">indicates whether token filtering should take place during
  34. the copy</td>
  35. <td valign="top" align="center">No</td>
  36. </tr>
  37. <tr>
  38. <td valign="top">forceoverwrite</td>
  39. <td valign="top">overwrite existing files even if the destination
  40. files are newer (default is false).</td>
  41. <td valign="top" align="center">No</td>
  42. </tr>
  43. </table>
  44. <h3>Examples</h3>
  45. <blockquote>
  46. <p><code>&lt;copyfile src=&quot;test.java&quot; dest=&quot;subdir/test.java&quot;/&gt;</code></p>
  47. <p><code>&lt;copyfile src=&quot;${src}/index.html&quot; dest=&quot;${dist}/help/index.html&quot;/&gt;</code></p>
  48. </blockquote>
  49. <hr><p align="center">Copyright &copy; 2000-2002,2004 The Apache Software Foundation. All rights
  50. Reserved.</p>
  51. </body>
  52. </html>