ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris <>
Subject How to throw error if two files not equal?
Date Fri, 25 Sep 2009 21:04:52 GMT
I need to check to see if two files are the same, and throw an error and 
stop the build if they're not.

Two problems:

How to throw an error?
How to compare two files?

This is as far as I've gotten:

<condition property="isgood">
   <filesmatch file1="file1.xml" file2="file2.xml"/>

This works, sort of, but it doesn't throw an error. Bizarrely, if 
neither file exists it returns true.

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

View raw message