groovy
  1. groovy
  2. GROOVY-6383

Allow more conditional blocks other than "environments" in ConfigSlurper

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.0-beta-2
    • Fix Version/s: 2.3.0-beta-1
    • Component/s: groovy-jdk
    • Labels:
      None
    • Number of attachments :
      0

      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.

        Activity

        Hide
        Andres Almiray added a comment -
        Show
        Andres Almiray added a comment - Pull Request at https://github.com/groovy/groovy-core/pull/262
        Hide
        CÚdric Champeau added a comment -

        Merged into master, thanks!

        Show
        CÚdric Champeau added a comment - Merged into master , thanks!

          People

          • Assignee:
            Andres Almiray
            Reporter:
            Andres Almiray
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: