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="${name}-${version}.jar"/>
Renames the file foo.jar
to ${name}-${version}.jar
(assuming name
and version
being predefined properties). If a file named ${name}-${version}.jar
already exists, it will be removed prior to renaming foo.jar
.
Copyright © 2000-2001,2004 The Apache Software Foundation. All rights Reserved.