This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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
 
Don't get me started about those stupid light bulbs.
 
subject: Display contents of jar within war