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





--- Comment #12 from Jesse Glick <[EMAIL PROTECTED]>  2008-10-01 09:07:15 PST 
---
The minimal fix for the UNC import problem in Ant 1.7.1 (which I think should
be merged to a 1.7.2 if one is created, since this is a serious regression),
borrowed from SVN r631263:

Index: src/main/org/apache/tools/ant/launch/Locator.java
===================================================================
--- src/main/org/apache/tools/ant/launch/Locator.java   (revision 700534)
+++ src/main/org/apache/tools/ant/launch/Locator.java   (working copy)
@@ -275,7 +275,8 @@
             path = decodeUri(uri);
             String cwd = System.getProperty("user.dir");
             int posi = cwd.indexOf(":");
-            if ((posi > 0) && path.startsWith(File.separator)) {
+            if ((posi > 0) && path.startsWith(File.separator)
+                    /* #42275: UNC */ && !path.startsWith("\\\\")) {
                path = cwd.substring(0, posi + 1) + path;
             }
         } catch (UnsupportedEncodingException exc) {


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

Reply via email to