ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ritchie <>
Subject Re: compare files from 2 directories
Date Mon, 28 Feb 2011 14:46:18 GMT
I did something like this...

<target name="a">
  <checksum totalproperty="ab1">
       <fileset dir="C:\A workspace\B"/>
       <fileset dir="C:\A workspace\B" includes="**/*.MD5"/>
  <checksum totalproperty="ab2">
       <fileset dir="C:\A workspace\A"/>
       <fileset dir="C:\A workspace\A" includes="**/*.MD5"/>
  <condition property="checksuccess"> 
    <equals arg1="${ab1}" arg2="${ab2}" /> 

<target name="b" depends="a" if="checksuccess">
   <echo message="ab1 and ab2 are same"/>

View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message