Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-5370

ConfigSlurper - multiple environment blocks broken

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.6
    • Fix Version/s: 2.1.0-rc-1, 1.8.9
    • Component/s: None
    • Labels:

      Description

      The following test fails, producing [b:2] instead of [a:1,b:2]:

      import groovy.util.*
      def c = new ConfigSlurper('development').parse("""
      environments {
          development {
              a = 1
          }
      }
      environments {
          development {
              b = 2
          }
      }
      
      """)
      assert c == [a:1,b:2]
      

        Attachments

        1. GROOVY-5370.patch
          1 kB
          Richard Rattigan

          Activity

            People

            • Assignee:
              blackdrag Jochen Theodorou
              Reporter:
              rattigan Richard Rattigan
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: