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 2017/05/14 21:18:25 UTC
buildr git commit: Avoid error "undefined local variable or method
`pom'" when invoking the `JarTask` without it being registered through the
`package` helper`.
Repository: buildr
Updated Branches:
refs/heads/master 0e8558317 -> 553f34846
Avoid error "undefined local variable or method `pom'" when invoking the `JarTask` without it being registered through the `package` helper`.
Reported by Dieter Vrancken.
Project: http://git-wip-us.apache.org/repos/asf/buildr/repo
Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/553f3484
Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/553f3484
Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/553f3484
Branch: refs/heads/master
Commit: 553f34846b4eb6b6a29249e0133e6ab463a4a80d
Parents: 0e85583
Author: Peter Donald <pe...@realityforge.org>
Authored: Mon May 15 07:18:16 2017 +1000
Committer: Peter Donald <pe...@realityforge.org>
Committed: Mon May 15 07:18:16 2017 +1000
----------------------------------------------------------------------
CHANGELOG | 2 ++
lib/buildr/java/packaging.rb | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/buildr/blob/553f3484/CHANGELOG
----------------------------------------------------------------------
diff --git a/CHANGELOG b/CHANGELOG
index fae22f4..7eb88ab 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,4 +1,6 @@
1.5.3 (Pending)
+* Fixed: Avoid error "undefined local variable or method `pom'" when invoking the `JarTask` without it being
+ registered through the `package` helper`. Reported by Dieter Vrancken.
1.5.2 (2017-04-03)
* Change: Update TestNG version to 6.11.
http://git-wip-us.apache.org/repos/asf/buildr/blob/553f3484/lib/buildr/java/packaging.rb
----------------------------------------------------------------------
diff --git a/lib/buildr/java/packaging.rb b/lib/buildr/java/packaging.rb
index 46afa50..01e653a 100644
--- a/lib/buildr/java/packaging.rb
+++ b/lib/buildr/java/packaging.rb
@@ -211,7 +211,7 @@ module Buildr #:nodoc:
def initialize(*args) #:nodoc:
super
enhance do
- pom.invoke rescue nil if pom && pom != self && classifier.nil?
+ pom.invoke rescue nil if respond_to?(:pom) && pom && pom != self && classifier.nil?
end
end