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