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

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