ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject 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
Date Thu, 22 Apr 2010 10:27:40 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=41948

Stefan Bodewig <bodewig@apache.org> changed:

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

--- Comment #13 from Stefan Bodewig <bodewig@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.

Mime
View raw message