ammonite-repl: use new java_cache env

master
Dominyk Tiller 2015-12-07 21:28:49 +00:00
parent 7e6f0bce49
commit 8e8f78e4cf
1 changed files with 4 additions and 2 deletions

View File

@ -15,13 +15,15 @@ class AmmoniteRepl < Formula
depends_on "sbt" => :build
def install
ENV["_JAVA_OPTIONS"] = "-Duser.home=#{buildpath}"
ENV.java_cache
system "sbt", "repl/assembly"
bin.install "repl/target/scala-2.11/ammonite-repl-0.5.1-2.11.7" => "amm"
end
test do
ENV["_JAVA_OPTIONS"] = "-Duser.home=#{testpath}"
ENV.java_cache
assert_equal "hello world!", shell_output("#{bin}/amm -c 'print(\"hello world!\")'")
end
end