LightGuard wrote:
> 
> On Mon, Feb 22, 2010 at 13:31, Federico Schroder <[email protected]>
> wrote:
>>
>> 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.
> 
> Could you do a copy with a replace filter?
> 
> 

As far as I know, no, because it seems there is no place to copy it, it gets
added directly to the war file by the war task. However if you can give
something closer to an example I'm happy to try it.
-- 
View this message in context: 
http://old.nabble.com/WAR---per-environment-configuration-tp27693855p27708847.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