java.lang.Cloneable
@Deprecated public class Rename extends Task
description, location, project
Constructor | Description |
---|---|
Rename() |
Deprecated.
|
Modifier and Type | Method | 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.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
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