Update jDepend addon to ensure target directories are invoked prior to 
attempting to analyze directories.


Project: http://git-wip-us.apache.org/repos/asf/buildr/repo
Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/71b1f5fe
Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/71b1f5fe
Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/71b1f5fe

Branch: refs/heads/master
Commit: 71b1f5fef250a04445861db04ee5bbd9969834e3
Parents: 75a9250
Author: Peter Donald <[email protected]>
Authored: Wed Mar 2 13:14:50 2016 +1100
Committer: Peter Donald <[email protected]>
Committed: Wed Mar 2 13:14:50 2016 +1100

----------------------------------------------------------------------
 CHANGELOG               | 2 ++
 addon/buildr/jdepend.rb | 6 +++++-
 2 files changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/buildr/blob/71b1f5fe/CHANGELOG
----------------------------------------------------------------------
diff --git a/CHANGELOG b/CHANGELOG
index 2666ed2..237f4ee 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,4 +1,6 @@
 1.4.24 (Pending)
+* Fixed:  Update jDepend addon to ensure target directories are invoked prior 
to attempting
+          to analyze directories.
 * Added:  Add jdepend.additional_project_names configuration to jDepend addon 
to
           ease merging in the source paths from multiple projects into one 
jDepend task.
 * Added:  Add findbugs.additional_project_names configuration to Findbugs 
addon to

http://git-wip-us.apache.org/repos/asf/buildr/blob/71b1f5fe/addon/buildr/jdepend.rb
----------------------------------------------------------------------
diff --git a/addon/buildr/jdepend.rb b/addon/buildr/jdepend.rb
index dae6959..1bf83ad 100644
--- a/addon/buildr/jdepend.rb
+++ b/addon/buildr/jdepend.rb
@@ -136,7 +136,11 @@ module Buildr
           deps << [p.compile.target, p.test.compile.target].flatten.compact
         end
 
-        deps.flatten.compact
+        deps = deps.flatten.compact
+        deps.each do |d|
+          d.invoke if d.respond_to?(:invoke)
+        end
+        deps
       end
 
       protected

Reply via email to