javaposse.jobdsl.dsl.helpers.step.AntContext.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of job-dsl-core Show documentation
Show all versions of job-dsl-core Show documentation
Javaposse jenkins job-dsl-core
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