ework.profiles.base.2023.2.0-M1.source-code.run-command.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of base Show documentation
Show all versions of base Show documentation
A Grace profile for other profiles to extend from.
The newest version!
description("Executes Grace commands") {
usage "grace run-command"
argument name: "Command Name", description: "The name of the command to be executed"
}
try {
def arguments = ["-Pargs=${commandLine.remainingArgs.join(' ')}"]
commandLine.systemProperties.each { key, value ->
arguments << "-D${key}=$value".toString()
}
gradle."runCommand"(*arguments)
} catch (Throwable e) {
console.error "Failed to execute a command", e
return false
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy