file | The file path. |
Example 1 | Append a line to a file. |
Configured By | ELEMENT |
Access | READ_WRITE |
Required | Yes. |
The file path.
Append a line to a file.
<oddjob id="this"> <job> <sequential> <jobs> <variables id="vars"> <myFile> <append> <file> <file file="${this.args[0]}/messages.txt"/> </file> </append> </myFile> </variables> <echo>Hello World <output> <value value="${vars.myFile}"/> </output> </echo> <echo>Goodbye World <output> <value value="${vars.myFile}"/> </output> </echo> </jobs> </sequential> </job> </oddjob>