Skip to content

Instantly share code, notes, and snippets.

@xmlking
Created March 15, 2013 19:12
Show Gist options
  • Save xmlking/5172291 to your computer and use it in GitHub Desktop.
Save xmlking/5172291 to your computer and use it in GitHub Desktop.
controlling war resources in BuildConfig.groovy
// Remove logback-test.xml from the production WAR, so that logback.xml is used instead
grails.war.resources = { stagingDir ->
delete(file:"${stagingDir}/WEB-INF/classes/logback-test.xml")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment