On Wed, Apr 28, 2010 at 10:01 AM, K. <[email protected]> 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 {} (doto (java.util.Properties.)
(.load (-> (Thread/currentThread)
(.getContextClassLoader)
(.getResourceAsStream "log4j.properties")))))
Also note that Properties are j.u.Maps, so they can be put into Clojure maps.
-Phil
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en