ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: moving slowly
Date Fri, 02 Aug 2002 14:05:25 GMT
But this applies only if there is an existing directory corresponding to the
target. If no such directory exists, then it might indeed be much faster to
rename the directory, and remove the excluded files.

Can I ask why the <rename> task was deprecated? It seems it's a better fit
than the error-prone <move todir=''><fileset dir=''
defaultexcludes'='false'/></move>? Involving <move> & filesets to rename
one
directory or file seems overkill to me. Sure *nix only a mv command, but it
doesn't have the notion of fileset, and neither does it exclude stuff
automatically. I'd like to know the rationals against <rename>. --DD

-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org] 
Sent: Friday, August 02, 2002 1:54 AM
To: ant-user@jakarta.apache.org
Subject: Re: moving slowly

> If your <move> is slow, it's because <move> detected some files
> shouldn't be moved, and thus cannot simply rename the directory
> (although I guess it could, and delete the ones that shouldn't be
> moved...).

No, the files that are not supposed to be moved could already be
present in the target directory.  Neither overwriting the existing
files nor deleting them would be very nice.  8-)

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