ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey E Care <ca...@us.ibm.com>
Subject Re: open jar and replace string
Date Mon, 20 Dec 2004 15:13:31 GMT
Should be easy to:

unzip the JAR file with <unzip>
use <replace> to do the string replacement
zip the JAR back up with <zip>

Exact implementation left as an exercise for the reader. See also the Ant 
Manual available here: http://ant.apache.org/manual

JEC
-- 
Jeffrey E. Care (carej@us.ibm.com)
WebSphere Build SWAT Team Lead
WebSphere Build Tooling Lead (Project Mantis)
https://w3.opensource.ibm.com/projects/mantis


"Radha Sangal" <Radha.Sangal@pega.com> wrote on 12/20/2004 09:56:36 AM:

> Does anyone has a sample code to open a jar file and replace a string
> within an xml in that jar? I need it real quick so if anyone could share
> some code...
> 
> Thanks in advance
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message