2012/9/10 larry google groups <lawrencecloj...@gmail.com>

>
> 1.) is this a break from java conventions? I thought Java projects tended
> to put a "resources" folder at the top level of a project, rather than
> inside of src?
>
>
Different projects in the Java ecosystem tend to place resources into
different places, e.g. Web app containers vs standalone apps vs giant
ecosystems such as Eclipse. Leinigen lets use follow whatever convention
you want.


> 2.) how does this work? If I need a static resource compiled with my code
> then I need to do something like (clojure.java.io/resource"homepage.html"), 
> yes? Does Leiningen actually compile in all static
> resources for me, if they are on the correct path?
>

Leiningen will include them in the JAR produced by `lein jar` or `lein
uberjar`  and at runtime they will be on classpath, so
clojure.java.io/resource will be able
to locate them. You can also use paths relative to the root. They are not
"compiled" in any other way, just included
as is.
-- 
MK

-- 
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

Reply via email to