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

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

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