If you want read a file from the classpath as a string, you can use
clojure.java.io/resource;
(require 'clojure.java.io)
(slurp (clojure.java.io/resource "META-INF/MANIFEST.MF"))
On Sun, Jan 20, 2013 at 11:34 PM, Josh Kamau wrote:
> Hi ;
>
> I figured it it out... (load "/myfile");loads my
Hi ;
I figured it it out... (load "/myfile");loads my file relative to
classpath
thanks
Josh
On Mon, Jan 21, 2013 at 2:14 AM, Josh Kamau wrote:
> Hi;
>
> I have a clojure lein project. I have a directory called resources which i
> believe is the classpath root directory..
>
> I just want
Hi;
I have a clojure lein project. I have a directory called resources which i
believe is the classpath root directory..
I just want to (slarp "resources/myfile.txt") , This doesnt work. How do i
specify the path properly such that i will always work even after i uberjar
or uberwar ?
thanks
josh