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

ConfigSlurper - multiple environment blocks broken

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.6
    • 2.1.0-rc-1, 1.8.9
    • None

    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

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

            Dates

              Created:
              Updated:
              Resolved: