Running tests against specific client jre in gradle
In the world of 64/32 bit native libraries, sometimes you need to specify a specific jre to run the code. I have 64/32 bit jres installed locally. The default is 64 bit, but I need to run some tests with a 32 bit jvm ...
How do I tell gradle the path to the 32 bit java.exe client on my local system? It cannot be java_home which defaults to jdk, I just need to tell jre client for test execution phase in gradle.build.
Something like
tasks.withType(Test) {
systemProperty "java.library.path", "C:\\here\\nativestuff\\lib"
systemProperty "java.client", "C:\\Program\ Files\ \(x86\)\\Java\\jre7\\bin\\java.exe"}
Tried everything I could think of, no idea how to make it work.
+3
source to share