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

ework.profiles.base.2023.0.1.source-code.run-command.groovy Maven / Gradle / Ivy

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