redpen datomic: use Language::Java.java_home_env
Closes Homebrew/homebrew#37247. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
cd46ffa0a3
commit
a9345257c6
2 changed files with 3 additions and 3 deletions
|
@ -8,9 +8,9 @@ class Datomic < Formula
|
|||
|
||||
def install
|
||||
libexec.install Dir["*"]
|
||||
(bin/"datomic").write_env_script libexec/"bin/datomic", :JAVA_HOME => ENV["JAVA_HOME"]
|
||||
(bin/"datomic").write_env_script libexec/"bin/datomic", Language::Java.java_home_env
|
||||
%w[transactor repl repl-jline rest shell].each do |file|
|
||||
(bin/"datomic-#{file}").write_env_script libexec/"bin/#{file}", :JAVA_HOME => ENV["JAVA_HOME"]
|
||||
(bin/"datomic-#{file}").write_env_script libexec/"bin/#{file}", Language::Java.java_home_env
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ class Redpen < Formula
|
|||
libexec.install %w[conf lib sample-doc]
|
||||
|
||||
prefix.install "bin"
|
||||
bin.env_script_all_files(libexec/"bin", :JAVA_HOME => ENV["JAVA_HOME"])
|
||||
bin.env_script_all_files(libexec/"bin", Language::Java.java_home_env("1.8"))
|
||||
end
|
||||
|
||||
test do
|
||||
|
|
Loading…
Reference in a new issue