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 2016/03/02 03:14:57 UTC

[1/3] buildr git commit: Prefer single quotes

Repository: buildr
Updated Branches:
  refs/heads/master b1e843362 -> 71b1f5fef


Prefer single quotes


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

Branch: refs/heads/master
Commit: 89988f6d77c1a41acdcfdda68642a3bbd5b947ce
Parents: b1e8433
Author: Peter Donald <pe...@realityforge.org>
Authored: Wed Mar 2 13:13:29 2016 +1100
Committer: Peter Donald <pe...@realityforge.org>
Committed: Wed Mar 2 13:13:29 2016 +1100

----------------------------------------------------------------------
 addon/buildr/jdepend.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/buildr/blob/89988f6d/addon/buildr/jdepend.rb
----------------------------------------------------------------------
diff --git a/addon/buildr/jdepend.rb b/addon/buildr/jdepend.rb
index bda30a0..1ae0f0d 100644
--- a/addon/buildr/jdepend.rb
+++ b/addon/buildr/jdepend.rb
@@ -35,7 +35,7 @@ module Buildr
 
         args = []
         if output_file
-          args << "-file"
+          args << '-file'
           args << output_file
         end
         target_paths.each do |target_path|


[2/3] buildr git commit: Avoid adding paths to jdepend if not present

Posted by do...@apache.org.
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 <pe...@realityforge.org>
Authored: Wed Mar 2 13:13:51 2016 +1100
Committer: Peter Donald <pe...@realityforge.org>
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


[3/3] buildr git commit: Update jDepend addon to ensure target directories are invoked prior to attempting to analyze directories.

Posted by do...@apache.org.
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 <pe...@realityforge.org>
Authored: Wed Mar 2 13:14:50 2016 +1100
Committer: Peter Donald <pe...@realityforge.org>
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