Skip to content
Snippets Groups Projects
Commit c20622ad authored by Misty De Meo's avatar Misty De Meo Committed by Misty De Meo
Browse files

JavaRequirement: return false if no java_home


Closes #118.

Signed-off-by: default avatarMisty De Meo <mistydemeo@gmail.com>
parent da643d94
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,8 @@ class JavaRequirement < Requirement
download "http://www.oracle.com/technetwork/java/javase/downloads/index.html"
satisfy :build_env => false do
return false unless File.executable? "/usr/libexec/java_home"
args = %w[--failfast]
args << "--version" << "#{@version}" if @version
@java_home = Utils.popen_read("/usr/libexec/java_home", *args).chomp
......
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