(String cljfile)
| 425 | } |
| 426 | |
| 427 | static void compile(String cljfile) throws IOException{ |
| 428 | InputStream ins = resourceAsStream(baseLoader(), cljfile); |
| 429 | if(ins != null) { |
| 430 | try { |
| 431 | Compiler.compile(new InputStreamReader(ins, UTF8), cljfile, |
| 432 | cljfile.substring(1 + cljfile.lastIndexOf("/"))); |
| 433 | } |
| 434 | finally { |
| 435 | ins.close(); |
| 436 | } |
| 437 | |
| 438 | } |
| 439 | else |
| 440 | throw new FileNotFoundException("Could not locate Clojure resource on classpath: " + cljfile); |
| 441 | } |
| 442 | |
| 443 | static public void load(String scriptbase) throws IOException, ClassNotFoundException{ |
| 444 | load(scriptbase, true); |
no test coverage detected