Changeset 12642


Ignore:
Timestamp:
05/01/10 13:17:30 (14 years ago)
Author:
Mark Evenson
Message:

Enable ASDF2 to work under Windows.

Under Windows, allow Pathname TYPE components to end with ".lnk"
allowing ASDF2 to use Windows shortcut code.

File:
1 edited

Legend:

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

    r12641 r12642  
    681681            if (type instanceof AbstractString) {
    682682                String t = type.getStringValue();
    683                 if (t.indexOf('.') >= 0) {
    684                     Debug.assertTrue(namestring == null);
    685                     return null;
    686                 }
     683    // Allow Windows shortcuts to include TYPE
     684    if (!(t.endsWith(".lnk") && Utilities.isPlatformWindows)) {
     685        if (t.indexOf('.') >= 0) {
     686      Debug.assertTrue(namestring == null);
     687      return null;
     688        }
     689    }
    687690                sb.append(t);
    688691            } else if (type == Keyword.WILD) {
Note: See TracChangeset for help on using the changeset viewer.