|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.oddjob.io.RenameJob
public class RenameJob
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 Summary | |
|---|---|
RenameJob()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RenameJob()
| Method Detail |
|---|
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.public void run()
run in interface Runnablepublic String toString()
toString in class Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||