multiple commandLine commands in a gralde task code example
Example: multiple commandLine commands in a gralde task
task senchaBuild() {
doLast {
senchaBuild_steps()
}
}
void senchaBuild_steps() {
def webappDir = "$projectDir/src/main/java/"
exec {
workingDir 'src/main/app/MYAPP'
commandLine 'cmd', 'c', 'sencha app build'
}
exec {
workingDir 'src/main/app/MYOTHERAPP'
commandLine 'cmd', 'c', 'sencha app build'
}
}