You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2010/04/22 12:27:40 UTC

DO NOT REPLY [Bug 41948] move task fails to rename file and also deletes source file when source and dest files differ only by case

https://issues.apache.org/bugzilla/show_bug.cgi?id=41948

Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #13 from Stefan Bodewig <bo...@apache.org> 2010-04-22 06:27:33 EDT ---
this was fixed for XP with Ant 1.7.1 but the problem seems to re-appear with
Windows 7 (don't know about Vista or Server2008 so I'm not changing the OS
right now).

On my Win7 x64 machine the AntUnit test fails.

new File("abc").getCanonicalFile().equals(new File("aBc"))

returns true and so renameFile in Move simply skips the operation and says the
file has already been renamed.

I don't fully understand why we compare the canonical version of the source to
the name of the target at all so I don't dare to remove the check or modify it
to just comparing the absolute path names.  Is it there to avoid renaming a
symbolic link to its target?

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