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

Allow more conditional blocks other than "environments" in ConfigSlurper

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.0-beta-2
    • 2.3.0-beta-1
    • groovy-jdk
    • None

    Description

      Since its inception, ConfigSlurper has been a great tool to parse Groovy script as configuration files. As good as it currently is it only allows a single non-configurational conditional block: environments. Enabling custom conditional blocks opens the door for even fine grained configuration where the deciding factor may be the current platform (linux, macosx, etc) or the project's name or some other combination.

      This feature has been already tested in Griffon and we'd like to contribute it back to Groovy.

      Attachments

        Activity

          People

            aalmiray Andres Almiray
            aalmiray Andres Almiray
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: