I am thinking using truezip API in Java to manipulate with ear file by
- extract ear into tmp directory,
- then search through jars in tmp,
- if found properties in jar,
- then extract it into tmp,
- modify that property
- then pack it back into jar,
- then pack jar back into ear.
OR is there a better way in using shell script?
Please advise.
Thanks
Using TrueZIP 7, you could use something like this: