| files | The files |
| list | More files |
| Example 1 | A single file. |
| Example 2 | Using a wildcard expression. |
| Example 3 | Specifying a list of files. |
| Example 4 | A complex version of building up a file list. |
| Configured By | ATTRIBUTE |
| Access | READ_WRITE |
| Required | No |
The files
| Configured By | ELEMENT |
| Access | WRITE_ONLY |
| Required | No |
More files
A single file.
<files files="onefile.txt"/>
Using a wildcard expression.
<files files="reports/*.txt"/>
Specifying a list of files.
<files>
<list>
<files files="onefile.txt"/>
<files files="reports/*.txt"/>
</list>
</files>
A complex version of building up a file list. It includes taking advantage of Oddjob's built in path conversion and adds in files specified as arguments passed in to Oddjob.
<oddjob id="this">
<job>
<sequential>
<jobs>
<variables id="vars">
<aList>
<files>
<list>
<file file="a.jar"/>
<value value="b.jar${path.separator}c.jar"/>
<value value="${this.args}"/>
</list>
</files>
</aList>
</variables>
<foreach>
<values>
<value value="${vars.aList}"/>
</values>
<configuration>
<xml>
<foreach id="loop">
<job>
<echo>${loop.current}</echo>
</job>
</foreach>
</xml>
</configuration>
</foreach>
</jobs>
</sequential>
</job>
</oddjob>