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:
Xu Cheng 2015-02-28 02:17:32 +08:00
parent cd46ffa0a3
commit a9345257c6
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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