You're probably using clojure.java.io/file (looks for files on the filesytem) instead of clojure.java.io/resource (looks for files in the classpath).
On 20 June 2015 at 16:41, Timur <[email protected]> wrote: > Hi everyone, > > I want to specify some defaults for a library that I pack as a jar, for > instance standard port a server. It should be read from a property file in > the respective jar file automatically. However, when I include a jar in my > class path, the file is not loaded from the included jar path but rather > from the path of the parent application. What would be the best practice to > specify jar specific constants. Should I define them in the source code? > > Thanks in advance! > > -- > 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 > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
