File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action this week in the Spring 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Display contents of jar within war