1 | <html>
|
---|
2 |
|
---|
3 | <head>
|
---|
4 | <meta http-equiv="Content-Language" content="en-us">
|
---|
5 | <title>Rename Task</title>
|
---|
6 | <link rel="stylesheet" type="text/css" href="../stylesheets/antmanual.css">
|
---|
7 | </head>
|
---|
8 |
|
---|
9 | <body>
|
---|
10 |
|
---|
11 | <h2><a name="rename">Rename</a></h2>
|
---|
12 | <h3><i>Deprecated</i></h3>
|
---|
13 | <p><i>This task has been deprecated. Use the Move task instead.</i></p>
|
---|
14 | <h3>Description</h3>
|
---|
15 | <p>Renames a given file.</p>
|
---|
16 | <h3>Parameters</h3>
|
---|
17 | <table border="1" cellpadding="2" cellspacing="0">
|
---|
18 | <tr>
|
---|
19 | <td valign="top"><b>Attribute</b></td>
|
---|
20 | <td valign="top"><b>Description</b></td>
|
---|
21 | <td align="center" valign="top"><b>Required</b></td>
|
---|
22 | </tr>
|
---|
23 | <tr>
|
---|
24 | <td valign="top">src</td>
|
---|
25 | <td valign="top">file to rename.</td>
|
---|
26 | <td valign="top" align="center">Yes</td>
|
---|
27 | </tr>
|
---|
28 | <tr>
|
---|
29 | <td valign="top">dest</td>
|
---|
30 | <td valign="top">new name of the file.</td>
|
---|
31 | <td valign="top" align="center">Yes</td>
|
---|
32 | </tr>
|
---|
33 | <tr>
|
---|
34 | <td valign="top">replace</td>
|
---|
35 | <td valign="top">Enable replacing of existing file (default: on).</td>
|
---|
36 | <td valign="top" align="center">No</td>
|
---|
37 | </tr>
|
---|
38 | </table>
|
---|
39 | <h3>Examples</h3>
|
---|
40 | <pre> <rename src="foo.jar" dest="${name}-${version}.jar"/></pre>
|
---|
41 | <p>Renames the file <code>foo.jar</code> to <code>${name}-${version}.jar</code> (assuming <code>name</code>
|
---|
42 | and <code>version</code> being predefined properties). If a file named <code>${name}-${version}.jar</code>
|
---|
43 | already exists, it will be removed prior to renaming <code>foo.jar</code>.</p>
|
---|
44 | <hr>
|
---|
45 | <p align="center">Copyright © 2000-2001,2004 The Apache Software Foundation. All rights
|
---|
46 | Reserved.</p>
|
---|
47 |
|
---|
48 | </body>
|
---|
49 | </html>
|
---|
50 |
|
---|