Groovy
  1. Groovy
  2. GROOVY-6383

Allow more conditional blocks other than "environments" in ConfigSlurper

    Details

    • Type: Improvement Improvement
    • Status: 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

      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

        Andres Almiray created issue -
        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!
        Cédric Champeau made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.3.0 [ 19608 ]
        Paul King made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Mark Thomas made changes -
        Workflow jira [ 12735294 ] Default workflow, editable Closed status [ 12746992 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12972758 ] Default workflow, editable Closed status [ 12980573 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        95d 4h 14m 1 Cédric Champeau 13/Jan/14 09:07
        Resolved Resolved Closed Closed
        81d 14h 52m 1 Paul King 05/Apr/14 00:00

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development