<!-- Invokes somecommand arg1 SOURCEFILENAME arg2 for each file in /tmp --> <apply executable="somecommand" parallel="false"> <arg value="arg1"/> <srcfile/> <arg value="arg2"/> <fileset dir="/tmp"/> </apply> <!-- List all the .conf files of "/etc" to the "out.log" file. --> <apply executable="ls" output="/tmp/out.log" append="true" > <arg value="-alh" /> <fileset dir="/etc" > <include name="*.conf" /> </fileset> </apply>