|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.Rename
public class Rename
Renames a file.
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
Rename()
Deprecated. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Rename()
Method Detail |
---|
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
- The exception is
thrown, if the rename operation fails.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |