diff options
| author | Jens Kohl | 2012-10-13 15:27:03 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2012-10-31 08:49:56 -0700 |
| commit | a5158fc50fba012ab23d3bba579f8a523e60bcb4 (patch) | |
| tree | 64ae45d2337da99aae9986e457cbfd1e2996a6cd /Library/Formula | |
| parent | 19511b2750912e4483fe026e502c76c1658c611f (diff) | |
| download | homebrew-a5158fc50fba012ab23d3bba579f8a523e60bcb4.tar.bz2 | |
sonar-runner 2.0
Closes #15442.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/sonar-runner.rb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Library/Formula/sonar-runner.rb b/Library/Formula/sonar-runner.rb new file mode 100644 index 000000000..74ad85346 --- /dev/null +++ b/Library/Formula/sonar-runner.rb @@ -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 |
