You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Diane Holt <ho...@yahoo.com> on 2002/06/05 20:41:15 UTC

Re: Is there a way to "synchronise" a folder (copy new files and dele te obsolete ones)?

--- Alexey Solofnenko <A....@mdl.com> wrote:
> instead of deleting the whole directory and then copying files over it
> would be much faster to update the target directory with new files and
> delete obsolete files only (much like rsync). Is there a way to do it in
> ANT?

If you're running 1.5, see the new Selectors stuff (under Concepts and
Types) for doing the deletes -- the copies shouldn't need anything
special.

If you're running <1.5, I posted a script not long ago that does the
deletes:
  http://marc.theaimsgroup.com/?l=ant-user&m=101926711201911&w=2

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>