ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tibor Strausz <Tibor.Stra...@tridion.com>
Subject RE: moving slowly
Date Fri, 02 Aug 2002 15:10:44 GMT

but often you know for sure you want to do exactly this:
> <rename> only works for a single use-case: I want to move a whole
> directory tree to a new name, there doesn't exist a directory of that
> name already and the directory lives on the same file system as the
> one I want to move (cross filesystem moves on Unix or moving between
> drives on Windows is impossible with File#renameTo).
for backup for example. You rename the dir to dir_timstamp and get new
source files from cvs .
I don't see any harm in leaving the rename task and just say that its only
for renaming (makes sence) and for other things use move...

tibi


> -----Original Message-----
> From: Stefan Bodewig [mailto:bodewig@apache.org]
> Sent: Friday, August 02, 2002 4:47 PM
> To: ant-user@jakarta.apache.org
> Subject: Re: moving slowly
> 
> 
> On Fri, 2 Aug 2002, Dominique Devienne <DDevienne@lgc.com> wrote:
> 
> > Can I ask why the <rename> task was deprecated?
> 
> This happened during the "great file task unification period" between
> 1.1 and 1.2.  At the same time when <deltree>, <copydir> and
> <copyfile> got deprecated.  <copy> and <move> gained a whole bunch
of
> new abilities and I don't think anybody really noticed that <move>
> became a lot slower than <rename> because nobody tried to move larger
> directory trees.
> 
> > Involving <move> & filesets to rename one directory or file seems
> > overkill to me.
> 
> <rename> only works for a single use-case: I want to move a whole
> directory tree to a new name, there doesn't exist a directory of that
> name already and the directory lives on the same file system as the
> one I want to move (cross filesystem moves on Unix or moving between
> drives on Windows is impossible with File#renameTo).
> 
> <move> is so much more flexible - and if you set the filesets up the
> "correct" way it isn't that much slower.
> 
> Stefan
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
> 

--
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