ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ritchie <ganesh.devaraj...@baml.com>
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"/>
  </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-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message