Package org.apache.tools.ant.taskdefs
Class Rename
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.Rename
- All Implemented Interfaces:
- Cloneable
Deprecated.
The rename task is deprecated since Ant 1.2.  Use move instead.
Renames a file.
- Since:
- Ant 1.1
- 
Field SummaryFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidexecute()Deprecated.Renames the filesrctodestvoidDeprecated.Sets the new name of the file.voidsetReplace(String replace) Deprecated.Sets whether an existing file should be replaced.voidDeprecated.Sets the file to be renamed.Methods inherited from class org.apache.tools.ant.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
- 
Constructor Details- 
Renamepublic Rename()Deprecated.
 
- 
- 
Method Details- 
setSrcDeprecated.Sets the file to be renamed.- Parameters:
- src- the file to rename
 
- 
setDestDeprecated.Sets the new name of the file.- Parameters:
- dest- the new name of the file.
 
- 
setReplaceDeprecated.Sets whether an existing file should be replaced.- Parameters:
- replace-- on, if an existing file should be replaced.
 
- 
executeDeprecated.Renames the filesrctodest- Overrides:
- executein class- Task
- Throws:
- BuildException- if the rename operation fails
 
 
-