This task has been deprecated. Use the Move task instead.
Renames a given file.
Attribute | Description | Required |
src | file to rename. | Yes |
dest | new name of the file. | Yes |
replace | Enable replacing of existing file (default: on). | No |
<rename src="foo.jar" dest="ant-${version}.jar"/>
Renames the file foo.jar
to ant-${version}.jar
(assuming name
and version
being predefined properties). If a file named ant-${version}.jar
already exists, it will be removed prior to renaming foo.jar
.