Groovy - Configuration File

Card Puncher Data Processing

About

Configuration in the form of Groovy Script

def config = new ConfigSlurper().parse('''
    app.date = new Date()  
    app.age  = 42
    app {                  
        name = "Test${42}"
    }
''')

assert config.app.date instanceof Date
assert config.app.age == 42
assert config.app.name == 'Test42'

Documentation / Reference







Share this page:
Follow us:
Task Runner