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?

+2


a source to share


3 answers


I agree with the comments on your question, auto-build should allow you to make changes like this easily and that's the right way to go. But if you insist on that direction, check out fuse-zip , it provides the ability to mount zip files to any directory mount point.



+1


a source


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).



+1


a source


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
+1


a source







All Articles