blob: a2faf61a83f8ad79af4978fbaaf98e7527cb1e3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
require 'formula'
class SonarRunner < Formula
homepage 'http://docs.codehaus.org/display/SONAR/Installing+and+Configuring+SonarQube+Runner'
url 'http://repo1.maven.org/maven2/org/codehaus/sonar/runner/sonar-runner-dist/2.4/sonar-runner-dist-2.4.zip'
sha1 '172fe923073e939940411847003463a7353465b3'
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
test do
system "#{bin}/sonar-runner", "-h"
end
end
|