Re: sync files with Ant?

2003-03-10 Thread Steve Loughran

- Original Message -
From: Brennan Stehling [EMAIL PROTECTED]
To: Ant Developers List [EMAIL PROTECTED]
Sent: Saturday, March 08, 2003 16:17
Subject: sync files with Ant?


 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.


yes, this would be good. one problem we always have is with remote
destinations and reading things like filestamps, esp. with FTP, as there are
so many ways to do directory listings. Keep FTP out of it.


But we are adding SSH support into ant, and an rsync equivalent over SSH
would be very slick indeed.



Re: sync files with Ant?

2003-03-10 Thread Craeg K Strong
FWIW:
I think adding an rsync like ability to Ant is a smashingly good idea,
and I hope to have some time over the next few months to assist
in any way I can.
--Craeg (aka peanut gallery)
From: Brennan Stehling [EMAIL PROTECTED]
I would like to build a sync capability as an Ant feature but I think I
need some pointers with getting started.  

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.



Re: sync files with Ant?

2003-03-10 Thread Adam Murdoch
Hi,

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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Adam