Details
-
Sub-task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.5.6, 1.6-rc-2
-
None
-
None
-
Windows
Description
Config Slurper fails with nested elements depending on the order specified. For example:
This Fails
def config = new ConfigSlurper().parse(''' foo { fruit.citrus="orange" bar { fruit.citrus="lemon" } } ''') assertEquals "lemon", config.foo.bar.fruit.citrus assertEquals "orange", config.foo.fruit.citrus
This Passes
def config = new ConfigSlurper().parse(''' foo { bar { fruit.citrus="lemon" } fruit.citrus="orange" } ''') assertEquals "lemon", config.foo.bar.fruit.citrus assertEquals "orange", config.foo.fruit.citrus