ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <jakarta-...@ehatchersolutions.com>
Subject Re: all platform diff with ANT?
Date Sat, 14 Sep 2002 19:14:36 GMT
Check out the <filesmatch> condition for the <condtion> task.  It will 
set a property if files match byte-for-byte - pure Java.

	Erik

Scott Ellsworth wrote:
> Hi, all.
> 
> Apologies if this appears twice.
> 
> I have a build where I transform a file to make a template, then, if the 
> result of the transformation is differerent than the last time I 
> transformed it, I generate a zillion more files and compile them.
> 
> The best way to check the uptodate status is a diff, I believe, as all 
> sorts of touches to the main file will not actually make a difference to 
> the transformed result.
> 
> Is there a pure java task, built in or otherwise, that will diff two 
> files, setting a property if they are not the same?  If this were 
> unix-only, I could just exec 'diff', but this has to work on Windows 
> without cygwin, so I have to be able to package it up as a java jar 
> file/taskdef.
> 
> If someone has a clever hack involving system specific executables, I 
> could fall back to that.
> 
> Scott
> ---
> scott@alodar.com
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
> 
> 
> 


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


Mime
View raw message