Skip to content

Instantly share code, notes, and snippets.

@willis7
Created September 26, 2013 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save willis7/6716017 to your computer and use it in GitHub Desktop.
Save willis7/6716017 to your computer and use it in GitHub Desktop.
task updateWar << {
ant.zip(destfile: 'path/to/my.war',
update: 'true') {
mappedresources(){
fileset(dir: "path/to/config/$env/",
includes: 'ws.properties')
globmapper( from: 'ws.properties',
to: 'WEB-INF/spring/appServlet/ws.properties')
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment