ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Smith <>
Subject RE: cross-platform rsync?
Date Fri, 28 Sep 2001 07:31:50 GMT
copy doesn't really 'sync' since files in the source tree that have been
deleted aren't correspondingly deleted in the destination (and empty
directories aren't 'pruned').
rsync is specifically geared to doing fast sync's by virtue of a delta
algorithm (whereas copy only looks at the timestamp).
Other than the above though, copy would be a neat solution.

-----Original Message-----
From: Bevan Arps []
Sent: 27 September 2001 10:56 PM
To:; ''
Subject: Re: cross-platform rsync?

At 13:23 27/09/2001 +0200, Eric Smith wrote:

My question is:  Is there a 'clean' cross-platform solution (obviously
preferably based in Java) 
for syncing files across file systems?

Ahh - perhaps I'm missing something here.

You say that the files are available on a Unix share - why not use the built
in copy task to do the synchronize? It includes smarts to only copy when

>From the Ant Manual, on Copy:

"Copies a file or Fileset to a new file or directory. Files are only copied
if the source file is newer than the destination file, or when the
destination file does not exist. However, you can explicitly overwrite files
with the overwrite attribute."

I've been using this to "synch" directories and it works very quickly, only
copying changed files.



"Programming is an Art Form that Fights Back"

Bevan Arps ( <> )
Senior OO Analyst, ACT Financial Systems

This communication  is confidential  to ACT  Financial  Systems  (Asia
Pacific)  and is intended for  use only by the  addressee.   The  views and
opinions  expressed in  this email  are the senders  own and do not
represent  the  views  and  opinions of  ACT  Financial  Systems  (Asia

  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message