directoriesCopied | The number of directories copied. |
filesCopied | The number of files copied. |
from | The from file. |
input | An input. |
name | A name, can be any text. |
output | The output. |
to | The from file. |
Example 1 | Copy a file. |
Example 2 | Copy a directory. |
Example 3 | Copy from a file to a buffer. |
Access | READ_ONLY |
Required | Read Only. |
The number of directories copied.
Access | READ_ONLY |
Required | Read Only. |
The number of files copied.
Configured By | ELEMENT |
Access | READ_WRITE |
Required | Yes unless input supplied. |
The from file.
Configured By | ELEMENT |
Access | READ_WRITE |
Required | Yes unless from supplied. |
An input.
Configured By | ATTRIBUTE |
Access | READ_WRITE |
Required | No. |
A name, can be any text.
Configured By | ELEMENT |
Access | READ_WRITE |
Required | Yes unless to supplied. |
The output.
Configured By | ATTRIBUTE |
Access | READ_WRITE |
Required | Yes unless output supplied. |
The from file.
Copy a file.
<oddjob id="this"> <job> <copy to="${work.dir}"> <from> <file file="${base.dir}/test/io/reference/test1.txt"/> </from> </copy> </job> </oddjob>
Copy a directory.
<oddjob id="this"> <job> <copy to="${work.dir}"> <from> <file file="${base.dir}/test/io/reference/a"/> </from> </copy> </job> </oddjob>
Copy from a file to a buffer.
<oddjob id="this"> <job> <sequential> <jobs> <copy name="Copy from a file to a buffer"> <from> <file file="${this.args[0]}/test/io/reference/test1.txt"/> </from> <output> <identify id="buff"> <value> <buffer/> </value> </identify> </output> </copy> <echo id="e" name="What's in the file?">${buff}</echo> </jobs> </sequential> </job> </oddjob>