标签:list each 文件 class rbac base 指定 ase bsp
task deleTask(type: Delete){ FileTree tree = fileTree(dir: bakPath) tree.each {File file -> if(!file.toString().contains(oldFileName)){ delete file } } } deleTask
task clearBacApkDir(type: Delete) { file( bakPath ).list().each{ f -> if(!f.contains(baseInfo)) { delete "${bakPath}/${f}" } } } clearBacApkDir
标签:list each 文件 class rbac base 指定 ase bsp
原文地址:http://www.cnblogs.com/androiddream/p/7880584.html