Changeset 13105


Ignore:
Timestamp:
12/27/10 22:06:54 (12 years ago)
Author:
ehuelsmann
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/Pathname.java

    r13100 r13105  
    266266                Pathname jarPathname;
    267267                if (file.length() > 0) {
    268                     // Instead of "use URL constructor to normalize Windows' use of device"
    269                     // attempt to shorten the URL to pass through the normal constructor.
    270                     if (Utilities.isPlatformWindows
    271                         && file.charAt(0) == '/'
    272                         && file.charAt(2) == ':'
    273                         && Character.isLetter(file.charAt(1)))
    274                         {
    275                             file = file.substring(1);
    276                         }
    277268                    URL url = null;
    278269                    URI uri = null;
     
    295286                        jarPathname = new Pathname(uri.getSchemeSpecificPart());
    296287                    } else {
    297                         jarPathname = new Pathname(path);
     288                        jarPathname = new Pathname((new File(path)).getPath());
    298289                    }
    299290                } else {
     
    366357                                    + ": " + ex.toString()));
    367358                }
    368                 Pathname p = new Pathname(uri.getPath());
     359                File file = new File(uri.getPath());
     360                Pathname p = new Pathname(file.getPath());
    369361                this.host = p.host;
    370362                this.device = p.device;
Note: See TracChangeset for help on using the changeset viewer.