groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject groovy git commit: GROOVY-8438: Running grape causes an exception
Date Wed, 10 Jan 2018 02:11:58 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_6_X f409750b0 -> 21495a1c0


GROOVY-8438: Running grape causes an exception


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/21495a1c
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/21495a1c
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/21495a1c

Branch: refs/heads/GROOVY_2_6_X
Commit: 21495a1c0afdb98e11ebea92f99ea7478e32e977
Parents: f409750
Author: paulk <paulk@asert.com.au>
Authored: Wed Jan 10 09:01:41 2018 +1000
Committer: paulk <paulk@asert.com.au>
Committed: Wed Jan 10 12:10:23 2018 +1000

----------------------------------------------------------------------
 src/main/groovy/org/codehaus/groovy/tools/GrapeMain.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/21495a1c/src/main/groovy/org/codehaus/groovy/tools/GrapeMain.groovy
----------------------------------------------------------------------
diff --git a/src/main/groovy/org/codehaus/groovy/tools/GrapeMain.groovy b/src/main/groovy/org/codehaus/groovy/tools/GrapeMain.groovy
index 2f53afa..dd330c3 100644
--- a/src/main/groovy/org/codehaus/groovy/tools/GrapeMain.groovy
+++ b/src/main/groovy/org/codehaus/groovy/tools/GrapeMain.groovy
@@ -293,7 +293,7 @@ if (cmd.hasOption('v')) {
 }
 
 if (options.hasOption('D')) {
-    options.getOptionProperties('D')?.each { k, v ->
+    cmd.getOptionProperties('D')?.each { k, v ->
         System.setProperty(k, v)
     }
 }


Mime
View raw message