ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: Comparing two files
Date Fri, 02 Sep 2005 17:48:29 GMT
--- Nicolas Vervelle <nicolas.vervelle@steria.com>
wrote:

> Hi,
> 
> there's probably a simple way to do it, but I don't
> know how.
> 
> I want to compare two files (see if they have the
> same contents, 
> timestamp can be different) and then if they differ
> I want to copy an 
> other file.
> Can someone help me ?

look for the filesmatch condition here:

http://ant.apache.org/manual/CoreTasks/conditions.html

-Matt


> 
> Thanks in advance,
> Nicolas

[SNIP]

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Mime
View raw message