grails-BuildConfig.groovy中grails.war.resources
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
如果有使用请标明来源:http://www.cnblogs.com/duwenlei/