Fork me on GitHub
#leiningen
<
2018-01-17
>
sashton18:01:07

is there some way to use an environment variable in :jvm-opts? I’m trying to put a user-independent reference to a file in my maven repo: "-Djavax.net.ssl.trustStore=$HOME/.m2/repository/xyz" It doesn’t appear to appreciate my attempts. A fully specified path does work, but is obviously not portable for other team members. This is just a dev profile thing for developer convenience, hence trying to do this in :jvm-opts, rather than installing the cert in the jre cacerts.

noisesmith18:01:03

~(format "-Djavax.net.ssl.trustStore=%s/.m2/repository/xyz" (System/getenv "$HOME"))

noisesmith18:01:18

project.clj is in an implicit syntax-quote

sashton18:01:58

awesome, thanks!