public class RenameJob extends Object implements Runnable, Serializable
This is a simple wrapper for Java's File.rename method and so is very limited.
<oddjob> <job> <folder> <jobs> <rename id="from" name="Rename" from="${work.dir}/a.txt" to="${work.dir}/b.txt"/> <rename id="back" name="Rename Back" from="${work.dir}/b.txt" to="${work.dir}/a.txt"/> </jobs> </folder> </job> </oddjob>
Constructor and Description |
---|
RenameJob() |
Modifier and Type | Method and Description |
---|---|
File |
getFrom()
Get the from file.
|
String |
getName()
Get the name.
|
File |
getTo()
Get the to file.
|
void |
run() |
void |
setFrom(File file)
Set the from file.
|
void |
setName(String name)
Set the name
|
void |
setTo(File file)
Set the to file.
|
String |
toString() |
public String getName()
public void setName(String name)
name
- The name.public File getFrom()
public void setFrom(File file)
The
- from file.public File getTo()
public void setTo(File file)
The
- to file.