ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: Is there a way to "synchronise" a folder (copy new files and dele te obsolete ones)?
Date Wed, 05 Jun 2002 18:41:15 GMT
--- Alexey Solofnenko <A.Solofnenko@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:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message