(v2.5.x) Remove open access warnings from cli #1159
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Kind of change
Description
What is the goal of this pull request?
Remove
Native subprocess...
warning when running the CLI in Java > 8.How does it achieve that?
Modifies CLI script to check the Java version running, in case of Java >8 adds required arguments to remove warning.
Are there any alternative ways to implement this?
Leave the warning and document it. However, given the majority of users should be on Java > 8, leaving the warning because we still support it, seems unfair and lazy.
Are there any implications of this pull request? Anything a user must know?
The script changes will add some delay, but it's not appreciable, especially when one takes into account the startup time for the jvm and Ruby scripts.
This does not fix the other warning that appear in newer versions.
Issue
Fixes #1155
Release notes
Please add a corresponding entry to the file CHANGELOG.adoc