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
grails-BuildConfig.groovy中grails.war.resources,布布扣,bubuko.com
grails-BuildConfig.groovy中grails.war.resources
原文地址:http://www.cnblogs.com/duwenlei/p/3851018.html