Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.6.3
-
None
-
Linux 32 bit
Description
ConfigSlurper fails to properly parse the config when closures are nested within an environments section.
test { foo { bar = '1' baz = '2' } } environments { dev { test { foo { bar = '3' } } } }
For environment "dev", the config ends up as " {test={foo=
{bar=3}}}", completely ignoring the "baz" configuration that was set in the default section.
It seems that the nested closure is causing default values to be ignored. See the "testEnvironmentProperties2" in the attached ConfigSlurperTest.groovy (or the patch).