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 <[email protected]> Authored: Sat Jul 26 10:00:16 2014 +1000 Committer: Peter Donald <[email protected]> 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,
