tools-build

2022-06-09T17:27:49.160089Z

Is there an established way to set the environment variables in a java-command call?

2022-06-09T17:28:31.170079Z

I'd like to be able to set test.chuck's TEST_CHECK_FACTOR to a value when running the tests from my build alias.

Alex Miller (Clojure team) 2022-06-09T17:36:51.343589Z

no, as that's not part of a java command. with process , you can use :env to set env vars

2022-06-09T17:37:03.149599Z

alright, thanks.

Alex Miller (Clojure team) 2022-06-09T17:37:22.058779Z

so you can merge that into the result of java-command, then pass to process

2022-06-09T17:46:17.135709Z

I'm using sean's build-clj run-tests var so I was hoping to be able to just pass something. Since that wasn't quite possible what I've opted for is to just pass a -e to clojure.main to evaluate a form that will set the factor to the value I want.