Software to cd (change directories) to .jar / .ear files?
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 am working on a large EJB project (yuck) and I often find myself in situations like:
something.ear/
|-- something.jar/
| `-- fileINeedToEdit.xml
I work mostly through 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 jar -cvf
. Obviously, this becomes a major headache after the first few times.
I would like to handle compressed files as directories and just cd
(or some alternative command) to the file that I want to edit.
Does anyone know how I can do this?
a source to share
There are two general strategies. Or use software that can mount jars as pseudo filesystems. This makes it work exactly like you're used to, but I'm not sure how well Mac OS supports user-space file systems. Or, use a tool that already has in-place editing support, such as Windows Explorer or a more powerful editor (such as emacs).
a source to share
I am using one of these applications. If I want to check something in jar or ear file
- Krusader (the file manager from KDE) - allows you to examine a jar, ear or war file, but unfortunately does not work with attached jars
- mc (Midnight Commander) - it works great with ear, can or war, nested bank event
a source to share