I have :profiles {:uberjar {:aot :all}}
, which is what I want, but after compilation is finished I need javafx.application.Platform/exit
to be called
not sure how I can accomplish that
Hi. I am a little confused about how I should refer to resources in my project. Should it be (slurp "foo.txt")
or (slurp "resources/foo.txt")
? I am thinking it it should be the former, but I get FileNotFoundException when running lein ring uberwar
?
neither - when loading from a file that ends up on the classpath, you should load it as a resource
Excuse my ignorance, but how do I do that?
(slurp (<http://clojure.java.io/resource|clojure.java.io/resource> "foo.txt"))
should work I believe
the path will be relative to whatever directory is included in the war, probably your resources/ directory
I see, thank you very much for the help!
this will work either from the file system (where the resource directory is on the classpath) or the uberwar (where the directory is inside the war)