ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: Comparing files in subdirectories
Date Thu, 24 Oct 2002 19:09:00 GMT
I have proposed an <lsync> task which synchronizes two local directories
(filesets in fact). It's not a comparison, but forces one directory to be
the same as another. It works like <copy> (uses <copy> inside), with the
added functionality of removing the files not in the source dir (fileset).

Otherwise, you either have to go with <foreach> (Yukes!), or writing your
own task (more involved). Or <exec> a platform-specific tool to do it.


-----Original Message-----
From: Scott Moore [] 
Sent: Thursday, October 24, 2002 2:02 PM
To: Ant User (E-mail)
Subject: Comparing files in subdirectories

I need to compare two directories (with subdirectories) to make sure all the
files are exactly the same.  Is there a way to do this with ANT 1.5.1?  
I saw the <condition> task has a filesmatch option, but that seems to work
with only two files.
Thanks for any help,

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

View raw message