aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorXu Cheng2015-02-24 14:42:56 +0800
committerXu Cheng2015-02-24 15:01:02 +0800
commitfab8e32f874b7ce0cd1801784cdacad211395096 (patch)
tree81bf88455e7d816239eca075b90212ad8fdee304 /Library/Formula
parent676c83f900cfa0e225c455fa74582e36306c4703 (diff)
downloadhomebrew-fab8e32f874b7ce0cd1801784cdacad211395096.tar.bz2
redpen: use JAVA_HOME from :java
Closes #37132. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/redpen.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Formula/redpen.rb b/Library/Formula/redpen.rb
index 79f488ac5..c2ac39285 100644
--- a/Library/Formula/redpen.rb
+++ b/Library/Formula/redpen.rb
@@ -11,8 +11,7 @@ class Redpen < Formula
libexec.install %w[conf lib sample-doc]
prefix.install "bin"
- java_home = `/usr/libexec/java_home`.chomp
- bin.env_script_all_files(libexec/"bin", :JAVA_HOME => java_home)
+ bin.env_script_all_files(libexec/"bin", :JAVA_HOME => ENV["JAVA_HOME"])
end
test do