Hi Experts
Would like to get your advise on what is the best way to automate replacing files inside jar files on Linux platform.
scenario:
1. We will have a directory "fixes" with all the code fix files. E.g xml, .class, .properties
2. We will have another directory with jar files one or more files (where all the fixes will go in)
3. Need your help in writing a script.
a. Each jar should be unjar/unzip to a tmp directory
b. Go through each code fix file one by one inside "fixes" directory
c. Search inside unjar tmp location and replace.
d. Take next code fix file, search again inside the same unjar tmp location and replace. Basically to find/replace all code fix files.
e. Once all done. jar the file and clear tmp
f. Now unjar next jar file and repeat from a to e.
Interesting part is
1. single code fix could be in multiple jar files
2. multiple code fix could be in single jar as well.
will try to upload sample files