ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey E Care <>
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:

Jeffrey E. Care (
WebSphere Build SWAT Team Lead
WebSphere Build Tooling Lead (Project Mantis)

"Radha Sangal" <> 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:
> For additional commands, e-mail:

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