Re: Reading properties file the proper way

2010-04-28 Thread Phil Hagelberg
On Wed, Apr 28, 2010 at 10:01 AM, K. wrote: > I did try with ClassLoader/getSystemResourceAsStream : > > However this breaks with "lein swank" since lein swank uses its own > classloader. The problem with this is that it's using the System classloader. Try using the thread's classloader: (into {

Reading properties file the proper way

2010-04-28 Thread K.
Hello, What is the best way to read a property file in a path independent way? I would like to be able to read the file and this regardless of where my clojure program is called from (this must also work if my program is bundled as a jar). clojure.contrib.java-utils/read-properties is nice but it