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

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

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

import javaposse.jobdsl.dsl.helpers.Context


class AntContext implements Context {
    def targets = []
    def props = []
    def buildFile = null
    def antOpts = []
    def antName = null

    def target(String target) {
        targets << target
    }

    def targets(Iterable addlTargets) {
        addlTargets.each {
            target(it)
        }
    }

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

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

    def buildFile(String buildFile) {
        this.buildFile = buildFile
    }

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

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

    def antInstallation(String antInstallationName) {
        antName = antInstallationName
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy