• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to list info of more than one jar.

 
jing hu
Ranch Hand
Posts: 63
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use
jar -tf test.jar
I can get the info in the test.jar
I want to know many .jars info.
how to do this?
I test "jar -tf test1.jar test.2.jar", but i can't success.
Any one tell me the answer or solution, thanks.
 
Balu Sadhasivam
Ranch Hand
Posts: 874
Android Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jing,

I guess thats not possible. What you could do is to write script or batch file (depending on OS) to take each jar file in a directory and execute jar -tvf command on it and store the output to a file.
 
jing hu
Ranch Hand
Posts: 63
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, thanks.
 
Tanzy Akhtar
Ranch Hand
Posts: 110
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks jing, for the useful command.


Thanks,
Tanzy.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

 
Balu Sadhasivam
Ranch Hand
Posts: 874
Android Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Newton wrote:


Did that work ? xargs will still supply all info to piped command and same as jar -tvf 1.jar 2.jar.. script would be better option.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic