buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject [1/3] buildr git commit: Supply asm dependency when a version is supplied or detected when using the gwt addon
Date Thu, 13 Nov 2014 22:24:28 GMT
Repository: buildr
Updated Branches:
  refs/heads/master af4bdbc76 -> 7eb0ea49c


Supply asm dependency when a version is supplied or detected when using the gwt addon


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

Branch: refs/heads/master
Commit: 80dc1a70063272413ea25bb6a30fc060ac96ad89
Parents: af4bdbc
Author: Peter Donald <peter@realityforge.org>
Authored: Fri Nov 14 09:21:21 2014 +1100
Committer: Peter Donald <peter@realityforge.org>
Committed: Fri Nov 14 09:21:21 2014 +1100

----------------------------------------------------------------------
 addon/buildr/gwt.rb | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/buildr/blob/80dc1a70/addon/buildr/gwt.rb
----------------------------------------------------------------------
diff --git a/addon/buildr/gwt.rb b/addon/buildr/gwt.rb
index d6d86a6..371f21d 100644
--- a/addon/buildr/gwt.rb
+++ b/addon/buildr/gwt.rb
@@ -28,11 +28,15 @@ module Buildr
 
       # The specs for requirements
       def dependencies(version = nil)
-        gwt_dev_jar = "com.google.gwt:gwt-dev:jar:#{version || self.version}"
-        if self.version <= '2.6.1'
+        v = version || self.version
+        gwt_dev_jar = "com.google.gwt:gwt-dev:jar:#{v}"
+        if v <= '2.6.1'
           [gwt_dev_jar]
         else
-          [gwt_dev_jar, 'org.ow2.asm:asm:jar:5.0.3']
+          [
+            gwt_dev_jar,
+            'org.ow2.asm:asm:jar:5.0.3'
+          ]
         end
       end
 


Mime
View raw message