Great. I can eliminate another function from my general purpose utilities file. Thanks. I need to comb the docs more.
On Sep 16, 9:21 am, Dave Ray <dave...@gmail.com> wrote: > Note that this implementation is the same as (clojure.java.io/resource) [1]. > > Dave > > [1]https://github.com/clojure/clojure/blob/3a3374f714e5a755b7de2a761f376... > > > > > > > > On Fri, Sep 16, 2011 at 8:58 AM, willyh <wheine...@gmail.com> wrote: > > I use the following helper function: > > > (defn getResource > > "Load resource. This is guaranteed to work with JNLP'd jars." > > [resource-string] > > (.getResource (.getContextClassLoader (Thread/currentThread)) > > resource-string)) > > > Note the comment. I had a lot of trouble loading resources when my > > uberjars were deployed via JNLP. > > > -- > > 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 -- 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