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

Consecutive configuration options are not merged correctly in ConfigSlurper

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6
    • 1.6.1
    • None
    • None

    Description

      This code currently fails when it should not:

            def config = new ConfigSlurper().parse('''
      grails.views.default.codec="none"
      grails {
      	mail {
      		host = "smtp.foo.com"
           	port = 25
           	username = "foo"
           	password = "bar"
        }
      }
      ''')
      
      
            assertEquals "none", config.grails.views.default.codec
            assertEquals "smtp.foo.com", config.grails.mail.host
      

      Attachments

        Issue Links

          Activity

            People

              graemerocher Graeme Rocher
              graemerocher Graeme Rocher
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: