Only add files to source path if the exist
Project: http://git-wip-us.apache.org/repos/asf/buildr/repo Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/ccf25217 Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/ccf25217 Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/ccf25217 Branch: refs/heads/master Commit: ccf25217012788eaf86d4e0ce5801719e720572f Parents: a0d695f Author: Peter Donald <[email protected]> Authored: Fri Nov 27 18:06:25 2015 +1100 Committer: Peter Donald <[email protected]> Committed: Fri Nov 27 18:06:25 2015 +1100 ---------------------------------------------------------------------- addon/buildr/checkstyle.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/buildr/blob/ccf25217/addon/buildr/checkstyle.rb ---------------------------------------------------------------------- diff --git a/addon/buildr/checkstyle.rb b/addon/buildr/checkstyle.rb index 97843b5..011b0a7 100644 --- a/addon/buildr/checkstyle.rb +++ b/addon/buildr/checkstyle.rb @@ -50,7 +50,7 @@ module Buildr args << format args << '-o' args << output_file - args += source_paths + args += source_paths.select { |p| File.exist?(p) } begin touch output_file
