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 ([EMAIL PROTECTED]) WebSphere Build SWAT Team Lead WebSphere Build Tooling Lead (Project Mantis) https://w3.opensource.ibm.com/projects/mantis "Radha Sangal" <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >