我試圖刪除文件集,因爲我是在很多examples搖籃刪除文件集
task deleteApkFiles(type: Delete) << {
println("-------------------------------------")
println("---------------DELETE---------------")
println("-------------------------------------")
def files = fileTree(dir: '.', include: '**/*.apk').files
delete fileTree(dir: '.', include: '**/*.apk')
println(files)
}
打印的只顯示我想delte
[app-minAPI16-prod-release.apk, app-minAPI16-prod-release.apk, app-minAPI16-beta-debug.apk]
我的文件,但delete
不delets他們
這將構建的gradle,這可能是一件壞事做 –