<html> <head> <meta http-equiv="Content-Language" content="en-us"> <title>Rename Task</title> </head> <body> <h2><a name="rename">Rename</a></h2> <h3><i>Deprecated</i></h3> <p><i>This task has been deprecated. Use the Move task instead.</i></p> <h3>Description</h3> <p>Renames a given file.</p> <h3>Parameters</h3> <table border="1" cellpadding="2" cellspacing="0"> <tr> <td valign="top"><b>Attribute</b></td> <td valign="top"><b>Description</b></td> <td align="center" valign="top"><b>Required</b></td> </tr> <tr> <td valign="top">src</td> <td valign="top">file to rename.</td> <td valign="top" align="center">Yes</td> </tr> <tr> <td valign="top">dest</td> <td valign="top">new name of the file.</td> <td valign="top" align="center">Yes</td> </tr> <tr> <td valign="top">replace</td> <td valign="top">Enable replacing of existing file (default: on).</td> <td valign="top" align="center">No</td> </tr> </table> <h3>Examples</h3> <pre> <rename src="foo.jar" dest="${name}-${version}.jar"/></pre> <p>Renames the file <code>foo.jar</code> to <code>${name}-${version}.jar</code> (assuming <code>name</code> and <code>version</code> being predefined properties). If a file named <code>${name}-${version}.jar</code> already exists, it will be removed prior to renaming <code>foo.jar</code>.</p> <hr> <p align="center">Copyright © 2001 Apache Software Foundation. All rights Reserved.</p> </body> </html>