wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Display contents of jar within war Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Display contents of jar within war" Watch "Display contents of jar within war" New topic
Author

Display contents of jar within war

Mohtashim Shaikh
Ranch Hand

Joined: Jul 18, 2010
Posts: 43
jar -tvf hello.war

however my war also contain some .jar inside lib folder withing the war.

I need a command display the contents of all the jars withing the war.

Can you help me?

Regards,
Mohtashim
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

Instead of using commands isn't it much easier to use something like WinRar to browse your war/jar?


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Mohtashim Shaikh
Ranch Hand

Joined: Jul 18, 2010
Posts: 43
I am trying to incorporate the command in a script that runs on Unix. Hence I would need the command or a workaround for the same.

Regards,
Mohtashim
 
jQuery in Action, 2nd edition
 
subject: Display contents of jar within war
 
Similar Threads
How do I read a .WAR file ?
integrating struts and spring
Problems creating WAR file
three day headache - ClassCastException
war could not be opened, does it exist?