From: Fredrik Tolf Date: Thu, 9 Nov 2023 19:41:47 +0000 (+0100) Subject: Allow jagidir $use directives to specify absolute paths. X-Git-Url: http://dolda2000.com/gitweb/?p=jagi.git;a=commitdiff_plain;h=9c4d8fd978f0d398f25b70b4f9016631a44a1777 Allow jagidir $use directives to specify absolute paths. --- diff --git a/src/jagi/fs/Compiler.java b/src/jagi/fs/Compiler.java index e7a66a1..60a1c24 100644 --- a/src/jagi/fs/Compiler.java +++ b/src/jagi/fs/Compiler.java @@ -235,6 +235,12 @@ public class Compiler { } private Path findlib(String nm) { + try { + Path p = Paths.get(nm); + if(Files.isRegularFile(p)) + return(p); + } catch(InvalidPathException e) { + } for(Path dir : searchpath) { Path jar = dir.resolve(nm + ".jar"); if(Files.isRegularFile(jar))