This is a simple wrapper for Java's File.rename method and so is very limited.
from | The from file. |
name | A name, can be any text. |
to | The to file. |
Example 1 | Rename a file and rename it back. |
Configured By | ATTRIBUTE |
Access | READ_WRITE |
Required | Yes. |
The from file.
Configured By | ATTRIBUTE |
Access | READ_WRITE |
Required | No. |
A name, can be any text.
Configured By | ATTRIBUTE |
Access | READ_WRITE |
Required | Yes. |
The to file.
Rename a file and rename it back.
<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>