ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Stevens" <insomniacpeng...@googlemail.com>
Subject Re: How to replace tokens in to war file?
Date Thu, 02 Oct 2008 09:35:38 GMT
2008/10/2 Kothari, Shivani <skothari@inteqnet.com>:
> Hi,
> I want to replace tokens inside a war file. How to do that? I am able to
> replace tokens in to exploded war folder, but I want to replace tokens
> in context.xml inside a war.

Simplest approach I can think of is
Extract file to temporary directory; replace tokens; update war with
modified file.
You could expand the whole war file and repackage it, but since it's
possible to update individual files in a zip/jar/etc. I'd just do
that.


Andy.
-- 
http://pseudoq.sourceforge.net/  Open source java Sudoku application

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message