Avoid adding paths to jdepend if not present
Project: http://git-wip-us.apache.org/repos/asf/buildr/repo Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/75a92505 Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/75a92505 Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/75a92505 Branch: refs/heads/master Commit: 75a925057224dc336e23101cbc0360dc152c2b80 Parents: 89988f6 Author: Peter Donald <[email protected]> Authored: Wed Mar 2 13:13:51 2016 +1100 Committer: Peter Donald <[email protected]> Committed: Wed Mar 2 13:13:51 2016 +1100 ---------------------------------------------------------------------- addon/buildr/jdepend.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/buildr/blob/75a92505/addon/buildr/jdepend.rb ---------------------------------------------------------------------- diff --git a/addon/buildr/jdepend.rb b/addon/buildr/jdepend.rb index 1ae0f0d..dae6959 100644 --- a/addon/buildr/jdepend.rb +++ b/addon/buildr/jdepend.rb @@ -40,7 +40,7 @@ module Buildr end target_paths.each do |target_path| file(target_path).invoke - args << target_path.to_s + args << target_path.to_s if ::File.exist?(target_path.to_s) end # If no output file then we must be trying to run the swing app
