You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I distribute my Clojure project as a Jar file, which includes the configuration files (inside a folder named resources).
But when running the code using java -jar the-jar.jar, immunoconf can't find the files, even when they are included.
The way I normally read files distributed in the jar files is by loading them as resources with the function clojure.java.io/resource and adding somehow the jar file contents to the Classpath[1].
But it seems that immunoconf would not be able to read the configuration files distributed in the jarfile (by the way it reads the config files.
How would you read a config file distributed in the jarfile?
I distribute my Clojure project as a Jar file, which includes the configuration files (inside a folder named resources).
But when running the code using
java -jar the-jar.jar
, immunoconf can't find the files, even when they are included.The way I normally read files distributed in the jar files is by loading them as resources with the function
clojure.java.io/resource
and adding somehow the jar file contents to the Classpath[1].But it seems that immunoconf would not be able to read the configuration files distributed in the jarfile (by the way it reads the config files.
How would you read a config file distributed in the jarfile?
[1] https://stackoverflow.com/a/22102218/344501
The text was updated successfully, but these errors were encountered: