I've been reading on forums on how to read/edit files inside archive but still cannot get my answer. Mainly using getResourceAsStream, and must be within its classpath.
What I need to do is, read and update the xml file with a given filepath as input, then redeploy it to Tomcat. But so far I still can't get answer to how to edit the xml files inside a AAR file within a WAR archive with a given full path as input. Can someone help me please?
for example, I would like to edit the applicationContext.xml file:
C:/webapp.WAR
From the webapp.WAR file:
webapp.WAR/WEB-INF/services/myapp.AAR
From the myapp.AAR:
myapp.AAR/applicationContext.xml