Re: clojure library code fails to load resource file when called from java

2012-09-07 Thread fenton
Thanks so much Dave that was it! :) On Friday, September 7, 2012 11:08:50 AM UTC-7, daveray wrote: > > slurp is happy to slurp from a URL, no need for the (.getFile) call on > the resource. In other words, the file returned for a resource that's > been compiled into a jar isn't very useful. Stic

Re: clojure library code fails to load resource file when called from java

2012-09-07 Thread Dave Ray
slurp is happy to slurp from a URL, no need for the (.getFile) call on the resource. In other words, the file returned for a resource that's been compiled into a jar isn't very useful. Stick with the URL returned bye clojure.java.io/resource. Dave On Fri, Sep 7, 2012 at 10:58 AM, fenton wrote: >

clojure library code fails to load resource file when called from java

2012-09-07 Thread fenton
https://github.com/ftravers/PublicDocumentation/blob/master/clojure/resource-file.md Reading a resource file File/directory layout: $ tree . |-- pom.xml |-- project.clj |-- README.md`-- src |-- test_project | `-- Core.clj `-- test.txt Setting up this to be a library for use in Ja