grails.war.resources = { staginDir,args -> //staginDir 代表项目下的target目录 delete(includeEmptyDirs: true, verbose: true, quiet: false, failonerror: true){ fileset(dir: "${stagingDir}/WEB-INF/classes/cn/topca/tca", includes: "ca/,offlineca/,JksController**"); //这里的**代表JksController开头的文件 } }
delete