extend/pathname: use Java.overridable_java_home_env in write_jar_script

This commit is contained in:
Bo Anderson
2020-06-19 12:04:30 +01:00
parent c244e992af
commit cd0c3fa835
4 changed files with 6 additions and 9 deletions
+1 -1
View File
@@ -33,10 +33,10 @@ module Language
req.java_home
end
# @private
def self.java_home_shell(version = nil)
java_home(version).to_s
end
private_class_method :java_home_shell
def self.java_home_env(version = nil)
{ JAVA_HOME: java_home_shell(version) }