nebula-clojure-plugin icon indicating copy to clipboard operation
nebula-clojure-plugin copied to clipboard

Java System Properties

Open emacadie opened this issue 7 years ago • 3 comments

Could you give an example on how to send a Java system property to the tasks clojureRun and clojureTest? I have been trying for an hour and I cannot figure it out.

Thanks.

emacadie avatar Sep 12 '18 05:09 emacadie

Hi @emacadie, it looks like both tasks have this property jvmOptions so that's how you could get your system property in. I would try this:

tasks.clojureRun. jvmOptions = "-DmyProperty=myValue"

chali avatar Sep 12 '18 17:09 chali

Thanks for the response, but that did not work.

It would be great if you could provide a build.gradle for the plugin with all the options in it.

emacadie avatar Sep 13 '18 00:09 emacadie

Hi, @emacadie that is unfortunately only quick idea I wanted to suggest. We are currently occupied by other priorities so I cannot spend more time on this investigation. I will be happy to accept any PR with an improved description if you discover how to achieve what you need.

chali avatar Sep 14 '18 17:09 chali