Repository: buildr Updated Branches: refs/heads/master 1dbc8bca8 -> 011c6473a
Workaround bug in Checkstyle 6.7 by creating the output file prior to running checkstyle Project: http://git-wip-us.apache.org/repos/asf/buildr/repo Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/011c6473 Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/011c6473 Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/011c6473 Branch: refs/heads/master Commit: 011c6473a04824015850409c7d1258e11c43222b Parents: 1dbc8bc Author: Peter Donald <[email protected]> Authored: Wed Jun 17 23:18:14 2015 +1000 Committer: Peter Donald <[email protected]> Committed: Wed Jun 17 23:18:14 2015 +1000 ---------------------------------------------------------------------- addon/buildr/checkstyle.rb | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/buildr/blob/011c6473/addon/buildr/checkstyle.rb ---------------------------------------------------------------------- diff --git a/addon/buildr/checkstyle.rb b/addon/buildr/checkstyle.rb index 811caba..ed5fbea 100644 --- a/addon/buildr/checkstyle.rb +++ b/addon/buildr/checkstyle.rb @@ -53,8 +53,10 @@ module Buildr args += source_paths begin + touch output_file Java::Commands.java 'com.puppycrawl.tools.checkstyle.Main', *(args + [{:classpath => cp, :properties => options[:properties], :java_args => options[:java_args]}]) rescue => e + rm_f output_file raise e if options[:fail_on_error] end end
