Grails Production .War Deployment

A client that I deploy several web-apps to has a very slow disk array and some serious anti-virus scanning when exploding a .war file. The process of exploding the .war on my laptop takes about 5 minutes, but on the client's site it takes about 45 minutes. I would like to move everything from the web-apps lib directory (in the war file) to tomcat's lib directory. However, I can't seem to get Grails to not include the lib folder in the .war .

This is the top of my BuildConfig..groovy file:

grails.servlet.version = "2.5" // Change depending on target container compliance (2.5 or 3.0)
grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
grails.project.target.level = 1.6
grails.project.source.level = 1.6
grails.project.war.file = "target/${appName}.war"

grails.war.resources = { stagingDir ->
    fileset(dir: "${stagingDir}/WEB-INF/lib" ).each {
    delete(file: it)
    }
}

Using Grails version 2.2.5


这应该工作:

grails.war.resources = { stagingDir ->
    fileset(dir: "${stagingDir}/WEB-INF/lib" ).each {
        delete(file: it)    
    }
}
链接地址: http://www.djcxy.com/p/55894.html

上一篇: 战争中的inf / classes目录没有解包?

下一篇: Grails生产.War部署