Return-Path: X-Original-To: apmail-buildr-commits-archive@www.apache.org Delivered-To: apmail-buildr-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1BA6811384 for ; Sat, 26 Jul 2014 00:00:23 +0000 (UTC) Received: (qmail 9479 invoked by uid 500); 26 Jul 2014 00:00:23 -0000 Delivered-To: apmail-buildr-commits-archive@buildr.apache.org Received: (qmail 9451 invoked by uid 500); 26 Jul 2014 00:00:22 -0000 Mailing-List: contact commits-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@buildr.apache.org Delivered-To: mailing list commits@buildr.apache.org Received: (qmail 9435 invoked by uid 99); 26 Jul 2014 00:00:22 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Jul 2014 00:00:22 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id A2D8F9B6046; Sat, 26 Jul 2014 00:00:22 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: donaldp@apache.org To: commits@buildr.apache.org Message-Id: <8fc4f7aa5e784c5d94fb0d9771d36b48@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: Support the 'report_level' property on findbugs addon. Date: Sat, 26 Jul 2014 00:00:22 +0000 (UTC) Repository: buildr Updated Branches: refs/heads/master 5cab75f6c -> 535a6b68b Support the 'report_level' property on findbugs addon. Project: http://git-wip-us.apache.org/repos/asf/buildr/repo Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/535a6b68 Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/535a6b68 Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/535a6b68 Branch: refs/heads/master Commit: 535a6b68b22b2c601db1e030f04cc2f8a9218f73 Parents: 5cab75f Author: Peter Donald Authored: Sat Jul 26 10:00:16 2014 +1000 Committer: Peter Donald Committed: Sat Jul 26 10:00:16 2014 +1000 ---------------------------------------------------------------------- CHANGELOG | 1 + addon/buildr/findbugs.rb | 9 +++++++++ 2 files changed, 10 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/buildr/blob/535a6b68/CHANGELOG ---------------------------------------------------------------------- diff --git a/CHANGELOG b/CHANGELOG index f8cefa6..ec6dde1 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,4 +1,5 @@ 1.4.20 (Pending) +* Added: Support the 'report_level' property on findbugs addon. * Change: Update the findbugs addon to use version Findbugs 3.0.0. * Change: Update the findbugs addon to use the built-in findbugs stylesheet to generate the html report. http://git-wip-us.apache.org/repos/asf/buildr/blob/535a6b68/addon/buildr/findbugs.rb ---------------------------------------------------------------------- diff --git a/addon/buildr/findbugs.rb b/addon/buildr/findbugs.rb index a87ccbd..7712799 100644 --- a/addon/buildr/findbugs.rb +++ b/addon/buildr/findbugs.rb @@ -44,6 +44,7 @@ module Buildr :effort => 'max', :pluginList => '', :classpath => cp, + :reportLevel => options[:report_level] || 'medium', :timeout => '90000000', :debug => 'false' } @@ -95,6 +96,12 @@ module Buildr @config_directory || project._(:source, :main, :etc, :findbugs) end + attr_writer :report_level + + def report_level + @report_level || 'medium' + end + attr_writer :report_dir def report_dir @@ -176,6 +183,7 @@ module Buildr } options[:exclude_filter] = project.findbugs.filter_file if File.exist?(project.findbugs.filter_file) options[:output] = 'xml:withMessages' + options[:report_level] = project.findbugs.report_level Buildr::Findbugs.findbugs(project.findbugs.xml_output_file, project.findbugs.source_paths.flatten.compact, @@ -194,6 +202,7 @@ module Buildr } options[:exclude_filter] = project.findbugs.filter_file if File.exist?(project.findbugs.filter_file) options[:output] = 'html' + options[:report_level] = project.findbugs.report_level Buildr::Findbugs.findbugs(project.findbugs.html_output_file, project.findbugs.source_paths.flatten.compact,