Re: Loading a file from classpath

2013-01-20 Thread David Powell
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

Re: Loading a file from classpath

2013-01-20 Thread Josh Kamau
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

Loading a file from classpath

2013-01-20 Thread Josh Kamau
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