You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by do...@apache.org on 2015/06/17 15:18:20 UTC
buildr git commit: Workaround bug in Checkstyle 6.7 by creating the
output file prior to running checkstyle
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 <pe...@realityforge.org>
Authored: Wed Jun 17 23:18:14 2015 +1000
Committer: Peter Donald <pe...@realityforge.org>
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