From: Stefan B. <bo...@us...> - 2003-01-27 17:12:13
|
Update of /cvsroot/ant-contrib/ant-contrib/test/resources/logic In directory sc8-pr-cvs1:/tmp/cvs-serv23483/test/resources/logic Modified Files: foreach.xml Log Message: Support nested paths in foreach Index: foreach.xml =================================================================== RCS file: /cvsroot/ant-contrib/ant-contrib/test/resources/logic/foreach.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** foreach.xml 20 Jan 2003 16:31:14 -0000 1.4 --- foreach.xml 27 Jan 2003 17:12:09 -0000 1.5 *************** *** 79,81 **** --- 79,104 ---- </foreach> </target> + + <target name="path" depends="setup"> + <mkdir dir="foreachtest"/> + <touch file="foreachtest/1"/> + <touch file="foreachtest/2"/> + <touch file="foreachtest/3"/> + <foreach target="echoFilename" param="param"> + <path> + <fileset dir="foreachtest"/> + </path> + </foreach> + </target> + + <target name="pathAndList" depends="setup"> + <mkdir dir="foreachtest"/> + <touch file="foreachtest/3"/> + <foreach list="1,2" target="echoFilename" param="param"> + <path> + <fileset dir="foreachtest"/> + </path> + </foreach> + </target> + </project> |