4
<meta http-equiv="Content-Language" content="en-us">
5
<title>Ant User Manual</title>
10
<h2><a name="rename">Rename</a></h2>
11
<h3><i>Deprecated</i></h3>
12
<p><i>This task has been deprecated. Use the Move task instead.</i></p>
14
<p>Renames a given file.</p>
16
<table border="1" cellpadding="2" cellspacing="0">
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>
23
<td valign="top">src</td>
24
<td valign="top">file to rename.</td>
25
<td valign="top" align="center">Yes</td>
28
<td valign="top">dest</td>
29
<td valign="top">new name of the file.</td>
30
<td valign="top" align="center">Yes</td>
33
<td valign="top">replace</td>
34
<td valign="top">Enable replacing of existing file (default: on).</td>
35
<td valign="top" align="center">No</td>
39
<pre> <rename src="foo.jar" dest="${name}-${version}.jar"/></pre>
40
<p>Renames the file <code>foo.jar</code> to <code>${name}-${version}.jar</code> (assuming <code>name</code>
41
and <code>version</code> being predefined properties). If a file named <code>${name}-${version}.jar</code>
42
already exists, it will be removed prior to renaming <code>foo.jar</code>.</p>
44
<p align="center">Copyright © 2000,2001 Apache Software Foundation. All rights