Raynes / lein-bin

Standalone console executables for your project.
155 stars 19 forks source link

FEATURE REQUEST: Support $JVM_OPTS or some other envvar #13

Closed guns closed 10 years ago

guns commented 11 years ago

Hi,

I found it necessary to patch lein-bin to add java command options from the environment (gc options + some system properties). Could you please add $JVM_OPTS (or whatever you like) to the exec lines to make this possible?

Cheers, guns

Raynes commented 11 years ago

It does have support for :jvm-opts in project.clj upon creation of the executable. You want to be able to set some JVM options after the executable has been created, so that it inherits them from an environment variable when it starts up?

I'd take a patch to add this.

guns commented 11 years ago

so that it inherits them from an environment variable when it starts up?

Yes. For instance, I wear tinfoil hats and delete my system's CA truststore, so I have to set -Djavax.net.ssl.trustStore=… on launch, but I don't want that hard-coded in the executable.

I'd take a patch to add this.

Is JVM_OPTS good for you?

Raynes commented 11 years ago

Tinfoil hats are trendy.

JVM_OPTS seems fine to me.