[armedbear-cvs] r13105 - trunk/abcl/src/org/armedbear/lisp

Erik Huelsmann ehuelsmann at common-lisp.net
Mon Dec 27 22:06:56 UTC 2010


Author: ehuelsmann
Date: Mon Dec 27 17:06:54 2010
New Revision: 13105

Log:
Fix Pathname.java failing to find boot.lisp in an "unpacked JAR" situation
found by running ABCL in the Glassfish v3 servlet container.

Modified:
   trunk/abcl/src/org/armedbear/lisp/Pathname.java

Modified: trunk/abcl/src/org/armedbear/lisp/Pathname.java
==============================================================================
--- trunk/abcl/src/org/armedbear/lisp/Pathname.java	(original)
+++ trunk/abcl/src/org/armedbear/lisp/Pathname.java	Mon Dec 27 17:06:54 2010
@@ -265,15 +265,6 @@
                                     jar.length() - jarSeparator.length());
                 Pathname jarPathname;
                 if (file.length() > 0) {
-                    // Instead of "use URL constructor to normalize Windows' use of device"
-                    // attempt to shorten the URL to pass through the normal constructor.
-                    if (Utilities.isPlatformWindows
-                        && file.charAt(0) == '/'
-                        && file.charAt(2) == ':'
-                        && Character.isLetter(file.charAt(1)))
-                        {
-                            file = file.substring(1);
-                        }
                     URL url = null;
                     URI uri = null;
                     try {
@@ -294,7 +285,7 @@
                         // path for jar files, so MERGE-PATHNAMES means something.
                         jarPathname = new Pathname(uri.getSchemeSpecificPart());
                     } else {
-                        jarPathname = new Pathname(path);
+                        jarPathname = new Pathname((new File(path)).getPath());
                     }
                 } else {
                     jarPathname = new Pathname("");
@@ -365,7 +356,8 @@
                                     + "'" + url.toString() + "'"
                                     + ": " + ex.toString()));
                 }
-                Pathname p = new Pathname(uri.getPath());
+                File file = new File(uri.getPath());
+                Pathname p = new Pathname(file.getPath());
                 this.host = p.host;
                 this.device = p.device;
                 this.directory = p.directory;




More information about the armedbear-cvs mailing list