Ignore:
Timestamp:
07/12/12 09:25:37 (9 years ago)
Author:
Mark Evenson
Message:

dmiles: SYS:*COMPILE-FILE-CLASS-EXTENSION* contains PATHNAME TYPE of compiled JVM artifacts.

The default "cls" of compiled JVM artifacts was chosen to easily
differentiate bewtween JVM artifacts not produced by ABCL and those
which are the JVM bytecode of the ABCL Java 5.0 compiler. During the
bootstrapping and subsequent debugging of the current compiler, this
distinction has proven more useful than giving ABCL produced artifacts
the default "class" CL:PATHNAME TYPE.

This change facilitates the bootstrapping of [running ABCL on the MSFT
.NET CLR underway by dmiles][abcl-ikvm]

[abcl-ikvm]: http://code.google.com/r/logicmoo-abcl-ikvm

dmiles: Implementation of ticket #34.

dmiles: It makes no change at first but makes implmentation satisfactory to my
initial request.

File:
1 edited

Legend:

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

    r13101 r14002  
    137137
    138138  public static boolean isCompiled(String filespec) {
    139     if (filespec.endsWith(".abcl")) {
     139    final String compiledExt = "." + Lisp._COMPILE_FILE_TYPE_.symbolValue().getStringValue();
     140    if (filespec.endsWith(compiledExt)) {
    140141      return true;
    141142    }
     
    145146      source = new File(filespec);
    146147      compiled = new File(filespec.substring(0, filespec.length() - 5)
    147           + ".abcl");
     148          + compiledExt);
    148149    } else {
    149150      source = new File(filespec + ".lisp");
    150       compiled = new File(filespec + ".abcl");
     151      compiled = new File(filespec + compiledExt);
    151152    }
    152153    if (!source.exists()) {
Note: See TracChangeset for help on using the changeset viewer.