Como você suporta uma tarefa do Gradle Exec para Mac e PC?
Existe uma maneira de poder executar uma tarefa no Windows e no Mac se os comandos tiverem uma forma diferente? Por exemplo:
task stopTomcat(type:Exec) {
// use this command line if on Windows
commandLine 'cmd', '/c', 'stop.cmd'
// use the command line if on Mac
commandLine './stop.sh'
}
Como você faria isso em Gradle?