Repository: groovy Updated Branches: refs/heads/GROOVY_2_4_X f3f98e7b2 -> 3bf3b2bbf
GROOVY-8438: Running grape causes an exception (port to 2_4_x) Project: http://git-wip-us.apache.org/repos/asf/groovy/repo Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/3bf3b2bb Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/3bf3b2bb Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/3bf3b2bb Branch: refs/heads/GROOVY_2_4_X Commit: 3bf3b2bbf03944f48276b57535f2e47a3e79cdf8 Parents: f3f98e7 Author: paulk <[email protected]> Authored: Wed Jan 10 09:01:41 2018 +1000 Committer: paulk <[email protected]> Committed: Wed Jan 10 12:16:31 2018 +1000 ---------------------------------------------------------------------- src/main/org/codehaus/groovy/tools/GrapeMain.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/groovy/blob/3bf3b2bb/src/main/org/codehaus/groovy/tools/GrapeMain.groovy ---------------------------------------------------------------------- diff --git a/src/main/org/codehaus/groovy/tools/GrapeMain.groovy b/src/main/org/codehaus/groovy/tools/GrapeMain.groovy index 97f08b0..591099c 100644 --- a/src/main/org/codehaus/groovy/tools/GrapeMain.groovy +++ b/src/main/org/codehaus/groovy/tools/GrapeMain.groovy @@ -355,7 +355,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) } }
