org.apache.tools.ant.taskdefs
public class Rename extends Task
Deprecated: The rename task is deprecated since Ant 1.2. Use move instead.
Renames a file.Since: Ant 1.1
| Method Summary | |
|---|---|
| void | execute()
Renames the file src to dest |
| void | setDest(File dest)
Sets the new name of the file. |
| void | setReplace(String replace)
Sets whether an existing file should be replaced. |
| void | setSrc(File src)
Sets the file to be renamed. |
src to destThrows: org.apache.tools.ant.BuildException The exception is thrown, if the rename operation fails.
Parameters: dest the new name of the file.
Parameters: replace on, if an existing file should be replaced.
Parameters: src the file to rename