Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any good tool for browsing archives(Ear,War, Jar) on OSX [closed]

On Linux i can use file-roller and open an browse the content of an EAR file without manually open it, can even dig into contained WAR file and within that JAR files quickly.

This is another of those must have tools I'm missing on OSX (along with meld).

Any good tools that can do this ?

Update: I found a tool that fits my needs : http://www.zipeg.com/

Honorable mention to midnight commander (MC) - but it's command line (but very fast) as well as newer versions of VI (which can go into zipped files)

like image 328
Thibaut Colar Avatar asked Jun 08 '11 20:06

Thibaut Colar


2 Answers

Any OS X ZIP utility that can open files without unpacking them will do. Alternatively, open a terminal window and type:

jar tvf <filename.jar> 

You can drag the file from Finder to the Terminal window, and it will populate the filename for you. You can also pipe the output into less to scroll up and down.

jar tvf <filename.jar> | less 
like image 142
Pavel Avatar answered Oct 04 '22 19:10

Pavel


I copy it to a ".zip" file and then use my zip utilities to peek inside.

.ears, .wars, and .jars are just zip files with additional required items packed inside.

If you want to extract the contents, you can unzip them. Java contains a jar command that provides ability to zip / unzip the archives (and extra verifications that the archives are properly jar files).

like image 30
Edwin Buck Avatar answered Oct 04 '22 20:10

Edwin Buck