Module: OS::Mac::Language::Java::ClassMethods Private
- Extended by:
- T::Helpers
- Defined in:
- extend/os/mac/language/java.rb
This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.
Instance Method Summary collapse
Instance Method Details
#java_home(version = nil) ⇒ Pathname?
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
14 15 16 17 18 19 |
# File 'extend/os/mac/language/java.rb', line 14 def java_home(version = nil) openjdk = find_openjdk_formula(version) return unless openjdk openjdk.opt_libexec/"openjdk.jdk/Contents/Home" end |