@Deprecated public class Rename extends Task
description, location, project
Constructor and Description |
---|
Rename()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Deprecated.
Renames the file
src to dest |
void |
setDest(java.io.File dest)
Deprecated.
Sets the new name of the file.
|
void |
setReplace(java.lang.String replace)
Deprecated.
Sets whether an existing file should be replaced.
|
void |
setSrc(java.io.File src)
Deprecated.
Sets the file to be renamed.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
public void setSrc(java.io.File src)
src
- the file to renamepublic void setDest(java.io.File dest)
dest
- the new name of the file.public void setReplace(java.lang.String replace)
replace
- on
, if an existing file should be replaced.public void execute() throws BuildException
src
to dest
execute
in class Task
BuildException
- if the rename operation fails