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