I have some files :
- dir/foo.txt
- dir/bar.txt
- dir/foobar.txt
During a apply task, I want to pass the list of file as arguments:
<target name="atask">
<apply executable="${cmd}" parallel="false" verbose="true">
<arg value="-in"/>
<srcfile/>
<arg value="dir/foo.txt"/>
<arg value="dir/bar.txt"/>
<arg value="dir/foobar.txt"/>
<fileset dir="${list.dir}" includes="*.list"/>
</apply>
</target>
This work fine, but what if I want pick the list of file dynamicly with a fileset:
<fileset dir="dir" includes="*.txt"/>
How can I convert this fileset to as many as argument in the list ? Something like:
<arg>
<fileset dir="dir" includes="*.txt"/>
</arg>
instead of
<arg value="dir/foo.txt"/>
<arg value="dir/bar.txt"/>
<arg value="dir/foobar.txt"/>
(this example do not work because arg do not support fileset)