Skip to content

fix: detect java correctly #4494

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 2, 2019

Conversation

rosen-vladimirov
Copy link
Contributor

In case you have incorrect JAVA_HOME, but you have javac in PATH, CLI's doctor checks will allow you to build, but Gradle will fail. Fix the logic to be the same as the one used in Gradle.

PR Checklist

What is the current behavior?

What is the new behavior?

Fixes/Implements/Closes #[Issue Number].

In case you have incorrect JAVA_HOME, but you have `javac` in PATH, CLI's doctor checks will allow you to build, but Gradle will fail. Fix the logic to be the same as the one used in Gradle.
@rosen-vladimirov rosen-vladimirov added this to the 5.3.1 milestone Apr 2, 2019
@rosen-vladimirov rosen-vladimirov self-assigned this Apr 2, 2019
@rosen-vladimirov rosen-vladimirov requested a review from Fatme April 2, 2019 09:27
@cla-bot cla-bot bot added the cla: yes label Apr 2, 2019
@ghost ghost added the new PR label Apr 2, 2019
@rosen-vladimirov
Copy link
Contributor Author

test cli-smoke cli-misc

@rosen-vladimirov
Copy link
Contributor Author

test cli-smoke

@rosen-vladimirov rosen-vladimirov merged commit 882ca60 into release Apr 2, 2019
@ghost ghost removed the new PR label Apr 2, 2019
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-java-home-detection branch April 2, 2019 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants