📌  相关文章
📜  gradde 任务中的多个命令行命令 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:41.201000             🧑  作者: Mango

代码示例1
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'
 }
}