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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <!--
  2. Licensed to the Apache Software Foundation (ASF) under one or more
  3. contributor license agreements. See the NOTICE file distributed with
  4. this work for additional information regarding copyright ownership.
  5. The ASF licenses this file to You under the Apache License, Version 2.0
  6. (the "License"); you may not use this file except in compliance with
  7. the License. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. -->
  15. <html>
  16. <head>
  17. <meta http-equiv="Content-Language" content="en-us">
  18. <link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
  19. <title>Copyfile Task</title>
  20. </head>
  21. <body>
  22. <h2><a name="copyfile">Copyfile</a></h2>
  23. <h3><i>Deprecated</i></h3>
  24. <p><i>This task has been deprecated. Use the Copy task instead.</i></p>
  25. <h3>Description</h3>
  26. <p>Copies a file from the source to the destination. The file is only copied if
  27. the source file is newer than the destination file, or when the destination file
  28. does not exist.</p>
  29. <h3>Parameters</h3>
  30. <table border="1" cellpadding="2" cellspacing="0">
  31. <tr>
  32. <td valign="top"><b>Attribute</b></td>
  33. <td valign="top"><b>Description</b></td>
  34. <td align="center" valign="top"><b>Required</b></td>
  35. </tr>
  36. <tr>
  37. <td valign="top">src</td>
  38. <td valign="top">the filename of the file to copy.</td>
  39. <td valign="top" align="center">Yes</td>
  40. </tr>
  41. <tr>
  42. <td valign="top">dest</td>
  43. <td valign="top">the filename of the file where to copy to.</td>
  44. <td valign="top" align="center">Yes</td>
  45. </tr>
  46. <tr>
  47. <td valign="top">filtering</td>
  48. <td valign="top">indicates whether token filtering should take place during
  49. the copy</td>
  50. <td valign="top" align="center">No</td>
  51. </tr>
  52. <tr>
  53. <td valign="top">forceoverwrite</td>
  54. <td valign="top">overwrite existing files even if the destination
  55. files are newer (default is false).</td>
  56. <td valign="top" align="center">No</td>
  57. </tr>
  58. </table>
  59. <h3>Examples</h3>
  60. <blockquote>
  61. <p><code>&lt;copyfile src=&quot;test.java&quot; dest=&quot;subdir/test.java&quot;/&gt;</code></p>
  62. <p><code>&lt;copyfile src=&quot;${src}/index.html&quot; dest=&quot;${dist}/help/index.html&quot;/&gt;</code></p>
  63. </blockquote>
  64. </body>
  65. </html>