Monday, 14 July 2014

How To Unzip A WAR File In Java

WAR file is just a JAR file, to extract it, just issue following jar command – “jar -xvf yourWARfileName.war“.
See output…
#jar -xvf mkyongApp.war
 
  created: WEB-INF/
  created: WEB-INF/classes/
  created: WEB-INF/classes/META-INF/
  created: WEB-INF/classes/com/
  created: WEB-INF/classes/com/mkyong/
  ......
extracted: WEB-INF/classes/applicationContext-mail.xml
extracted: WEB-INF/classes/com/mkyong/batch/batchProcessor.class
  ......

No comments:

Post a Comment