Skip to content

config files inside a Jar #11

Description

@jgomo3

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions