Software to cd (change directories) into .jar/.ear files?

Posted by Segphault on Stack Overflow See other posts from Stack Overflow or by Segphault
Published on 2010-05-14T16:49:25Z Indexed on 2010/05/14 16:54 UTC
Read the original article Hit count: 177

Filed under:
|
|
|

Is there any software/script that will allow me to cd (change directories) into .jar/.ear/.zip files and edit the contents of the files it contains? I'm working on a large EJB project (yuck), and I frequently find myself in situations like the following:

something.ear/
|-- something.jar/
|   `-- fileINeedToEdit.xml

I work primarily via the command line (Mac/Linux), so I find myself decompressing the files with jar -xvf, editing the file I need to edit, and then recompressing with jar -cvf. Obviously, this becomes a major headache after the first few times.

I'd like to be able to treat the compressed files as directories, and simply cd (or some alternate command) to the file I want to edit.

Does anyone know how I can accomplish this?

© Stack Overflow or respective owner

Related posts about jar

Related posts about command-line