aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-03-06 15:55:43 +0800
committerXu Cheng2015-03-07 12:05:06 +0800
commit91dcd0996966b2bdd31cf0bafdbb1b16b8cdb68f (patch)
treea9cfff8a7d14e59c29f4702d297c7a800038e2dc /Library
parentf291481b4eaf9b2011004a1541096d2cb5dba817 (diff)
downloadhomebrew-91dcd0996966b2bdd31cf0bafdbb1b16b8cdb68f.tar.bz2
mvnvm: set JAVA_HOME in the script
Closes #37439. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mvnvm.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/mvnvm.rb b/Library/Formula/mvnvm.rb
index 7c841b80e..4f3b56a45 100644
--- a/Library/Formula/mvnvm.rb
+++ b/Library/Formula/mvnvm.rb
@@ -9,12 +9,12 @@ class Mvnvm < Formula
def install
bin.install "mvn"
+ bin.env_script_all_files(libexec/"bin", Language::Java.java_home_env)
end
conflicts_with "maven", :because => "also installs a 'mvn' executable"
test do
- ENV["JAVA_HOME"] = `/usr/libexec/java_home`.chomp
(testpath/"mvnvm.properties").write <<-EOS.undent
mvn_version=3.2.5
EOS