On Wed, Apr 28, 2010 at 10:01 AM, K. <kotot...@gmail.com> 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 clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en