mvnvm: fix audit

mvnvm:
  * `conflicts_with` (line 18) should be put before `install method` (line 12)
master
Miguel Araújo 2017-02-12 08:20:23 -03:00 committed by Mike McQuaid
parent f818cd9d7b
commit 0e8413e5f4
1 changed files with 2 additions and 2 deletions

View File

@ -9,14 +9,14 @@ class Mvnvm < Formula
depends_on :java => "1.7+" depends_on :java => "1.7+"
conflicts_with "maven", :because => "also installs a 'mvn' executable"
def install def install
bin.install "mvn" bin.install "mvn"
bin.install "mvnDebug" bin.install "mvnDebug"
bin.env_script_all_files(libexec/"bin", Language::Java.overridable_java_home_env("1.7+")) bin.env_script_all_files(libexec/"bin", Language::Java.overridable_java_home_env("1.7+"))
end end
conflicts_with "maven", :because => "also installs a 'mvn' executable"
test do test do
(testpath/"settings.xml").write <<-EOS.undent (testpath/"settings.xml").write <<-EOS.undent
<settings><localRepository>#{testpath}/repository</localRepository></settings> <settings><localRepository>#{testpath}/repository</localRepository></settings>