Marc Palmer's Blog » Excluding files from a WAR with Grails - the right way - 0 views
-
// Remove the JDBC jar before the war is bundled grails.war.resources = { stagingDir -> delete(file:"${stagingDir}/WEB-INF/lib/jdbc2_0-stdext.jar") }
-
// Remove the JDBC jar before the war is bundled eventWarStart = { warName -> if (grailsEnv == "production") { println "Removing JDBC 2 Extensions JAR" Ant.delete( file:"${stagingDir}/WEB-INF/lib/jdbc2_0-stdext.jar") } }