I did something like this... <target name="a"> <checksum totalproperty="ab1"> <fileset dir="C:\A workspace\B"/> </checksum> <delete> <fileset dir="C:\A workspace\B" includes="**/*.MD5"/> </delete> <checksum totalproperty="ab2"> <fileset dir="C:\A workspace\A"/> </checksum> <delete> <fileset dir="C:\A workspace\A" includes="**/*.MD5"/> </delete> <condition property="checksuccess"> <equals arg1="${ab1}" arg2="${ab2}" /> </condition> </target>
<target name="b" depends="a" if="checksuccess"> <echo message="ab1 and ab2 are same"/> </target> -- View this message in context: http://ant.1045680.n5.nabble.com/compare-files-from-2-directories-tp3400285p3403355.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org