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 45142] Delete Action does not delete unix path with "\" in it
Date Thu, 05 Jun 2008 18:18:52 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45142





--- Comment #1 from Torsten Krah <tkrah@fachschaft.imn.htwk-leipzig.de>  2008-06-05
11:18:52 PST ---
A suggested fix, it seems ok for me, maybe i've missed something, is to check
for '/' as separatorChar and if true, skip the "\" replacement, something like
this:


if(File.separatorChar != '/') {
 path = path.replace('\\', File.separatorChar);
}

Applying this to resolveFile and normalize Methods of FileUtils.java did the
trick.
Good or bad idea?


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