gradle shell
- 作者: 汪之左手
- 来源: 51数据库
- 2020-09-27
1.您的execute在方法String执行 下面是一个例子任务:task executeExample < {="" filetree="" iotree="fileTree(dir:" ".")="" iotree.each="" {="" f="" -="">
def proc = "ls -l ${f}".execute();
proc.waitFor();
println "return code: ${ proc.exitValue()}"
println "stderr: ${proc.err.text}"
println "stdout: ${proc.in.text}"
}
}
同问。。。
def proc = "ls -l ${f}".execute();
proc.waitFor();
println "return code: ${ proc.exitValue()}"
println "stderr: ${proc.err.text}"
println "stdout: ${proc.in.text}"
}
}
同问。。。
推荐阅读
