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 44499] ManifestClassPath throws when a relative path would traverse the file system root
Date Thu, 03 Sep 2009 18:15:23 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=44499



--- Comment #3 from baba.buehler@zilliant.com 2009-09-03 11:15:22 PDT ---
I was able to get this working on Windows by changing the if at around line 79
to:

            if (!dirs[i].equals("" + File.separatorChar) &&
                !dirs[i].matches("[a-zA-Z]:\\\\")) {
                dirs[i] = dirs[i] + File.separatorChar;
            }

I also think the for loop at around line 102 should be (< vs <=):

            for (int j = 0; j < maxParentLevels && j < dirs.length; ++j) {


The limitation here is that everything involved needs to be on one Windows
drive; in my example above if the basedir were D:\temp this wouldn't work.

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