|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.Task | +--org.apache.tools.ant.taskdefs.Rename
Renames a file.
Fields inherited from class org.apache.tools.ant.Task |
description,
location,
project,
target |
Constructor Summary | |
Rename()
|
Method Summary | |
void |
execute()
Renames the file src to dest |
void |
setDest(java.lang.String dest)
Sets the new name of the file. |
void |
setReplace(java.lang.String replace)
Sets wheter an existing file should be replaced. |
void |
setSrc(java.lang.String src)
Sets the file to be renamed. |
Methods inherited from class org.apache.tools.ant.Task |
getDescription,
getLocation,
init,
setDescription,
setLocation,
setTarget |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Rename()
Method Detail |
public void setSrc(java.lang.String src)
src
- the file to renamepublic void setDest(java.lang.String 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |