Hello,
I'm tying to create customized WAR files for different environments
(development, staging, etc).
So far I've successfully followed and used
http://docs.codehaus.org/display/GRADLE/complete+example+-+environment+managment+and+maven+deploy
,but lately I've run into one of the problems described in that page:
"The most problematic part is for the inclusion of the custom WEB-INF
folder. If ever it contains files already present in the original WEB-INF,
then they are not replaced. Instead the target WAR will contain twice the
same file...", i.e.: the war plugin does a straight copy of the content of
src/main/webapp into the WAR without giving me a chance to tweak its
content. Even overwriting files doesn't work, because it doesn't overwrite,
it adds a new equally named file, which leads to rather unpredictable
behavior when exploding the WAR.

Is there a way around this?
I think that for this a simple overwrite will do (if that is somehow
available).

For reference what I'm trying to do is to substitute the logback
configuration file with a production version.

I'm fairly new to gradle, any tip or advice is most welcome.
Thanks,
Federico
-- 
View this message in context: 
http://old.nabble.com/WAR---per-environment-configuration-tp27693855p27693855.html
Sent from the gradle-user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to