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 37701] - Move task can delete the wrong file on a case insensitive filesys
Date Tue, 29 Nov 2005 22:36:31 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37701>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37701


stevel@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Move tasks doesn't execute  |Move task can delete the
                   |File.renameTo               |wrong file on a case
                   |                            |insensitive filesys




------- Additional Comments From stevel@apache.org  2005-11-29 23:36 -------
This is a bug, but its not what you've titled. You looked at the code, you can
see we use renameTo.

what is the problem is that we delete the dest file first. And I bet on a case
insensitive filesystem, if the src file is called "README" then the dest file
"readme" appears to exist, so we delete it and so del the source file.

We cant just act differently on windows because some filesystems are case
sensitive (remote unix filesys, clearcase). Maybe there is some other kind of
trick we can use. If not, then doc in the manual is the only other option.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message