ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Murdoch <>
Subject Re: sync files with Ant?
Date Mon, 10 Mar 2003 16:30:32 GMT

Commons vfs has a set of tasks for shipping files around between local and/or 
remote file systems.  This includes a <sync> task, which does pretty much 
what you want.  The tasks support local, ftp, webdav, ssh, samba, etc files 
as source and destination.

The tasks still need some work however.  They aren't as featured as the ant 
equivalents (or as an ant sync task would need to be), and are missing things 
like selectors, mappers and filters.  Nothing a patch or two wouldn't take 
care of :)

So, one option would be to help round out the vfs tasks, rather than starting 
from scratch.

On Sun, 9 Mar 2003 12:17 am, Brennan Stehling wrote:
> I would like to build a sync capability as an Ant feature but I think I
> need some pointers with getting started.  I just tried to build Ant
> 1.5.2 and got some SAX problems.  I also need to know where to begin
> once I can get everything compiled.
> The Ant feature I would like to create is something that I would like
> to use at work.  I manage a 3 tier development system where we have a
> development, test and production environment.  I have an Ant script
> doing all of the building for me and once it is built I want to copy
> the files to the test and production servers.  To do this I want an Ant
> process that does something like rsync, but to start it will just do
> copying to local directories.
> The sync process will do a comparison to check if files need to be
> created, replaced or deleted in the destination location.  The behavior
> would also need to be configurable.  I could create software which
> would do all of this outside of Ant, but it seems like a logical
> feature to add to Ant.
> I would appreciate any feedback on this idea...
> Thanks,
> Brennan Stehling - Java Developer
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:


View raw message