ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 22863] - Can't just rename a directory with the move task
Date Tue, 02 Sep 2003 14:50:40 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22863>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22863

Can't just rename a directory with the move task





------- Additional Comments From gthb@dimon.is  2003-09-02 14:50 -------
With this:

<move todir="${delivs.dist.dir}/targetdir">
    <fileset dir="${delivs.dist.dir}/sourcedir"/>
</move>

I got this output:

     [move] Moving 1199 files to C:\cvs\DS-4\delivs\dist\targetdir
     [move] Moved 2 empty directories to C:\cvs\DS-4\delivs\dist\targetdir

and the original folder was gone, so yes, apparently everything was moved.
It still took quite a while, but I guess that was just a scan of the tree
to move, as you said. The point remains that I don't want that scan ...
what I want is simply to rename the root directory of the tree, with no
regard to its contents. That is exactly what <rename> does for me -- my use
case is a renaming operation, not a moving operation -- and thus the <move>
task is an imperfect replacement in this use case. So maybe <rename> should
not have been deprecated?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message