Close
jGuru Forums
Expand All | Collapse All
Include ant modified selector base on condition... sureshWed Oct 31, 2012 08:20 AM
<project name = "test" default = "dt" basedir = "." > <target name = "dt1" > <copy todir = "ant_temp2" > <fileset dir = "ant_temp1" > <if> <equals arg1 = "${ABC}" arg2 = "true" /> <then> <modified update = "true" /> </then> </if> <exclude name = "*.txt" /> </fileset> </copy> </target> <target name = "dt" > <antcall target = "dt1" > <param name = "ABC" value = "true" /> </antcall> </target> <target name = "dt2" > <antcall target = "dt1" /> </target> </project>
Report | Quote This | Reply | Print