7

I need to update an XML file that's inside of a jar file using ANT. I have to search for a string in the file and replace it with another value if that string exists.

martin clayton
  • 76,436
  • 32
  • 213
  • 198
Justin Kredible
  • 8,354
  • 15
  • 65
  • 91

1 Answers1

9

A crude approach. Unzip the jar file, use the replace ant task, zip the files again and put the jar file back.

miku
  • 181,842
  • 47
  • 306
  • 310