Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

config files inside a Jar #11

Open
jgomo3 opened this issue Feb 7, 2023 · 0 comments
Open

config files inside a Jar #11

jgomo3 opened this issue Feb 7, 2023 · 0 comments

Comments

@jgomo3
Copy link

jgomo3 commented Feb 7, 2023

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant