Skip to content
Snippets Groups Projects
Commit 45f52f77 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #2244 from jonchang/java

java_requirement: don't consider macOS Java stub
parents dbf3630a 960768d8
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,9 @@ class JavaRequirement < Requirement
javas = []
javas << Pathname.new(ENV["JAVA_HOME"])/"bin/java" if ENV["JAVA_HOME"]
javas << java_home_cmd
javas << which("java")
which_java = which("java")
# /usr/bin/java is a stub on macOS
javas << which_java if which_java.to_s != "/usr/bin/java"
javas
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment