org.apache.tools.ant.taskdefs
Class Rename
Renames a file.
- Ant 1.1
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.
|
execute , getDescription , getLocation , getOwningTarget , getRuntimeConfigurableWrapper , getTaskName , getTaskType , getWrapper , handleErrorFlush , handleErrorOutput , handleFlush , handleInput , handleOutput , init , isInvalid , log , log , maybeConfigure , perform , reconfigure , setDescription , setLocation , setOwningTarget , setRuntimeConfigurableWrapper , setTaskName , setTaskType |
execute
public void execute()
throws BuildException
Renames the file src
to dest
- execute in interface Task
BuildException
- The exception is
thrown, if the rename operation fails.
setDest
public void setDest(File dest)
Sets the new name of the file.
dest
- the new name of the file.
setReplace
public void setReplace(String replace)
Sets whether an existing file should be replaced.
replace
- on
, if an existing file should be replaced.
setSrc
public void setSrc(File src)
Sets the file to be renamed.
src
- the file to rename
Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.