All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javaposse.jobdsl.dsl.helpers.step.GroovyContext.groovy Maven / Gradle / Ivy

There is a newer version: 1.22-rxd-2
Show newest version
package javaposse.jobdsl.dsl.helpers.step


class GroovyContext extends AbstractGroovyContext {
    def groovyParams = []
    def scriptParams = []
    def props = []
    def javaOpts = []
    def groovyInstallation = null

    def groovyParam(String param) {
        groovyParams << param
    }

    def groovyParams(Iterable params) {
        params.each { groovyParam(it) }
    }

    def scriptParam(String param) {
        scriptParams << param
    }

    def scriptParams(Iterable params) {
        params.each { scriptParam(it) }
    }

    def prop(String key, String value) {
        props << "${key}=${value}"
    }

    def props(Map map) {
        map.entrySet().each {
            prop(it.key, it.value)
        }
    }

    def javaOpt(String opt) {
        javaOpts << opt
    }

    def javaOpts(Iterable opts) {
        opts.each { javaOpt(it) }
    }

    def groovyInstallation(String groovyInstallationName) {
        groovyInstallation = groovyInstallationName
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy