mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-30 04:29:50 -05:00
1 parent
5075a55692
commit
bd6122dfe5
1 file changed
+2
-11
@@ -2,20 +2,11 @@ require 'formula'
|
||||
|
||||
class Checkstyle < Formula
|
||||
homepage 'http://checkstyle.sourceforge.net/'
|
||||
url 'http://downloads.sourceforge.net/project/checkstyle/checkstyle/5.6/checkstyle-5.6-bin.tar.gz'
|
||||
sha1 'cf08ac75aedddcd3a8d1f27fcbbb6095b0d1d5e3'
|
||||
url 'http://downloads.sourceforge.net/project/checkstyle/checkstyle/5.7/checkstyle-5.7-bin.tar.gz'
|
||||
sha1 '232d317391b58d118a0102e8ff289fbaebd0064a'
|
||||
|
||||
def install
|
||||
libexec.install "checkstyle-#{version}-all.jar", "sun_checks.xml"
|
||||
bin.write_jar_script libexec/"checkstyle-#{version}-all.jar", "checkstyle"
|
||||
end
|
||||
|
||||
test do
|
||||
# Note this test "fails" because the audit has issues
|
||||
# TODO - pipe through cat to ingore error code
|
||||
(testpath/"Test.java").write <<-EOS.undent
|
||||
public class Test{ }
|
||||
EOS
|
||||
system "#{bin}/checkstyle", "-c", "#{libexec}/sun_checks.xml", "-r", "Test.java"
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user