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
SOLR-16721 Java version detection fails when _JAVA_OPTIONS
is set
#1502
Conversation
Signed-off-by: Jan Høydahl <janhoy@users.noreply.github.com>
Thanks @janhoy! I can confirm that this patch works in Homebrew/homebrew-core#126571. |
Co-authored-by: Ruoyu Zhong <zhongruoyu@outlook.com>
Signed-off-by: Jan Høydahl <janhoy@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This made me wonder if there's a way to get just the version number from java
more cleanly, but I don't see anything in the man page :-(
# Conflicts: # solr/CHANGES.txt
There's also |
Signed-off-by: Jan Høydahl <janhoy@users.noreply.github.com>
Yea, that's crazy - imagine all the parsing of versions in all kind of scripts that could be avoided. But I think there's no such option. |
Changed the grep to |
Removing the
Keeping the |
Yep, with your example you'd get this output:
Agree it won't hurt adding back the head |
Signed-off-by: Jan Høydahl <janhoy@users.noreply.github.com>
Signed-off-by: Jan Høydahl <janhoy@users.noreply.github.com>
…1502) Signed-off-by: Jan Høydahl <janhoy@users.noreply.github.com>
https://issues.apache.org/jira/browse/SOLR-16721