Skip to content

Commit

Permalink
[LARAI] Attempts another way at storing the source
Browse files Browse the repository at this point in the history
  • Loading branch information
joaobispo committed Aug 8, 2024
1 parent bfb9ddb commit f87a2e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion LARAI/src/larai/LaraI.java
Original file line number Diff line number Diff line change
Expand Up @@ -1025,8 +1025,12 @@ public static void loadLaraImport(String importName) {

var source = laraImport.getJsFile().map(file -> SpecsIo.normalizePath(file.getAbsolutePath())).orElse(laraImport.getFilename());
var sourceOld = laraImport.getFilename() + " (LARA import '" + importName + "' as " + laraImport.getFileType().toString() + ")";
var anotherSource = laraImport.getJsFile().map(file -> SpecsIo.normalizePath(file.getAbsolutePath())).orElse(laraImport.getFilename()) + " (LARA import '" + importName + "' as " + laraImport.getFileType().toString() + ")";
System.out.println("Source prev: " + sourceOld);
System.out.println("Source new: " + source);
System.out.println("Source current: " + anotherSource);
weaverEngine.getScriptEngine().eval(laraImport.getCode(), laraImport.getFileType(),
sourceOld);
anotherSource);
}

}
Expand Down

0 comments on commit f87a2e4

Please sign in to comment.