extend/pathname: use Java.overridable_java_home_env in write_jar_script

This commit is contained in:
Bo Anderson
2020-06-10 17:08:41 +01:00
parent bbb2696742
commit 07547e8cae
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) }