sonar-runner 2.0
Closes Homebrew/homebrew#15442. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
7bc0f7fcf9
commit
e05f6c7a40
1 changed files with 27 additions and 0 deletions
27
Formula/sonar-runner.rb
Normal file
27
Formula/sonar-runner.rb
Normal file
|
@ -0,0 +1,27 @@
|
|||
require 'formula'
|
||||
|
||||
class SonarRunner < Formula
|
||||
homepage 'http://docs.codehaus.org/display/SONAR/Installing+and+Configuring+Sonar+Runner'
|
||||
url 'http://repository.codehaus.org/org/codehaus/sonar-plugins/sonar-runner/2.0/sonar-runner-2.0.zip'
|
||||
sha1 '3e483322985936b3724418bb696e7b74ef020cb8'
|
||||
|
||||
def install
|
||||
# Remove windows files
|
||||
rm_rf Dir['bin/*.bat']
|
||||
libexec.install Dir['*']
|
||||
bin.write_exec_script libexec/'bin/sonar-runner'
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
If this is your first install, you should adjust its default configuration:
|
||||
#{libexec}/conf/sonar-runner.properties
|
||||
|
||||
after that you should also add a new enviroment variable:
|
||||
SONAR_RUNNER_HOME=#{libexec}
|
||||
EOS
|
||||
end
|
||||
|
||||
def test
|
||||
system "#{bin}/sonar-runner", "-h"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue