Gracefully handle all sorts of exceptions
Project: http://git-wip-us.apache.org/repos/asf/buildr/repo Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/a0d695fc Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/a0d695fc Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/a0d695fc Branch: refs/heads/master Commit: a0d695fcde6bb5583d82952de6a7a7ec2afbaaac Parents: 79576b9 Author: Peter Donald <[email protected]> Authored: Fri Nov 27 18:06:03 2015 +1100 Committer: Peter Donald <[email protected]> Committed: Fri Nov 27 18:06:03 2015 +1100 ---------------------------------------------------------------------- addon/buildr/checkstyle.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/buildr/blob/a0d695fc/addon/buildr/checkstyle.rb ---------------------------------------------------------------------- diff --git a/addon/buildr/checkstyle.rb b/addon/buildr/checkstyle.rb index 48f6d79..97843b5 100644 --- a/addon/buildr/checkstyle.rb +++ b/addon/buildr/checkstyle.rb @@ -55,7 +55,7 @@ module Buildr 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 + rescue Exception => e rm_f output_file raise e if options[:fail_on_error] end
