ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject RE: compare files line by line
Date Thu, 30 Jul 2009 07:24:16 GMT
 

-----Original Message-----
From: JĂșlio Cesar Bueno Cotta [mailto:juliocbcotta@gmail.com] 
Sent: Wednesday, July 29, 2009 10:21 PM
To: Ant Users List
Subject: compare files line by line
/*
Hello good people
I am here again needing some help
now I need to do a I script to compare two ".properties"..like

[...]

I need to compare these two files and so fail the build if then have some
differences..
[...]
*/

for a simple check, whether files are equal use
condition / filesmatch, example =

<condition property="propsrequal">
  <filesmatch file1=".." file2=".."/>
</condition>

<target name="foo" if="propsrequal">
  <echo> Files are equal ..</echo>
 </target>


Regards, Gilbert



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message