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? > 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 > > > -- Jason Porter Real Programmers think better when playing Adventure or Rogue. PGP key id: 926CCFF5 PGP fingerprint: 64C2 C078 13A9 5B23 7738 F7E5 1046 C39B 926C CFF5 PGP key available at: keyserver.net, pgp.mit.edu --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
