I’m using Gradle 2.7 on Mac Yosemite. I have the following files:
src/main/environment/dev/context.xml
src/main/environment/qa/context.xml
src/main/environment/prod/context.xml
What I would like is if I run a build gradle -Pqa build
, the appropriate context.xml
file above is copied into my WAR
(into the WEB-INF/classes directory is fine). How do I set this up with gradle?