dcsimg
reading and updating a file inside WAR file
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Jimy_Mystry
Posted On:   Wednesday, May 5, 2004 06:33 AM

I want to read a file which is inside a WAR file. Say the file is a properties file. I want to read it and have to do some modification and after doing those modification i need to place the file again inside the war file. Can u suggest someone the way to do it?

Re: reading and updating a file inside WAR file

Posted By:   Christopher_Koenigsberg  
Posted On:   Wednesday, May 5, 2004 07:04 AM

Unjar (jar xf) the .war file to a temp dir. Make your changes. Re-jar again (jar cf) to a new copy of the .war file. That's how we do it.

About | Sitemap | Contact