Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Specified JDK is not used to run the tests #38

Closed
wilkinsona opened this issue May 4, 2014 · 1 comment
Closed

Specified JDK is not used to run the tests #38

wilkinsona opened this issue May 4, 2014 · 1 comment
Assignees

Comments

@wilkinsona
Copy link
Contributor

The plugin checks that a given JDK7_HOME or JDK8_HOME exists, but it doesn't actually use the JDK to run the tests; as far as I can tell the default JDK is still used. To illustrate this, I did the following:

$ mkdir ~/fakeJdk/bin
$ touch ~/fakeJdk/bin/java
$ ./gradlew clean springioCheck -PJDK7_HOME=/Users/awilkinson/fakeJdk

I would expect the springioJDK7Test task to fail as it's being run with a bogus java executable but it ran successfully

@rwinch rwinch self-assigned this May 5, 2014
rwinch pushed a commit that referenced this issue May 5, 2014
@rwinch
Copy link
Contributor

rwinch commented May 5, 2014

Fixed in f9eba00 Also note I added a Sample Project that can be used for performing sanity checks to ensure everything is working

@rwinch rwinch closed this as completed May 5, 2014
wilkinsona pushed a commit to wilkinsona/gradle-plugins that referenced this issue Jul 14, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants