After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 43975 - View as Java Archive (jar)
View as Java Archive (jar)
Status: RESOLVED FIXED
Product: file-roller
Classification: Applications
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Paolo Bacchilega
file-roller-maint
: 48435 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2000-10-24 06:42 UTC by Ross Burton
Modified: 2006-12-16 10:27 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
This is a unified patch for the enhancement (23.81 KB, patch)
2004-05-25 14:54 UTC, srinath
none Details | Review
This is a unified patch for the enhancement. (22.73 KB, patch)
2004-08-09 04:07 UTC, srinath
none Details | Review

Description Ross Burton 2001-09-10 00:46:23 UTC
(this could be based upon the gnome vfs zip viewer).
In CodeWarrior on the Mac, there is a fantasic viewer for .jar files. (they are
basically .zip files).  It is a perfectly normal viewer, except that it allows
editing on the contents (i.e. files can be deleted and added), and (this is the
good bit) if any .java or .jar file is dropped on the window, it (.java) or its
contents (.jar) are placed in the .jar, in the _right place_.

Example:
Create an empty .jar.
Drop onto it a Java files specifiying a package of com.eazel.java.  The
directorie structure com/eazel/java will be created and the file added.
Drop onto it a Java Archive, the directory structure will be copied across and
conflicts resolved.

Very nice for Java developers.  If in doubt find a Mac Java coder using
CodeWarrior.



------- Additional Comments From sullivan@eazel.com 2000-10-24 09:56:49 ----

Sounds like a great idea, but obviously too late for version 1.0.



------- Additional Comments From don@eazel.com 2000-12-18 19:38:31 ----

Yep, good idea.  Let's do this later ...




------- Bug moved to this database by unknown@bugzilla.gnome.org 2001-09-09 20:46 -------
Comment 1 Christian Fredrik Kalager Schaller 2002-05-12 12:55:19 UTC
*** Bug 48435 has been marked as a duplicate of this bug. ***
Comment 2 Glynn Foster 2003-04-23 12:03:58 UTC
sounds like this should almost go into something like file-roller, no?
Comment 3 Ross Burton 2003-04-23 12:13:30 UTC
Hi Glynn, poking me about ancient bugs :)

In hindsight this should really be an extension to file-roller, or a
nautilus script, or something. I'd hate this to be in Nautilus itself.

Comment 4 Glynn Foster 2003-04-23 14:45:40 UTC
what think thee paolo?
Comment 5 srinath 2004-05-25 14:54:52 UTC
Created attachment 28003 [details] [review]
This is a unified patch for the enhancement

The patch includes code for a new FRCommandJar Object.
It adds two new files => fr-command-jar.c and fr-command-jar.h
This FRCommandJar Object extends FRCommandZip Object.

Hope this completely solves the enhancement.
Comment 6 srinath 2004-06-17 17:18:13 UTC
Paolo, I'm waiting for your comments!!
Comment 7 Paolo Bacchilega 2004-06-17 18:54:42 UTC
zip_add is useless, you can simply overwrite add and then call the zip
implementation of it in the fr_command_jar_add function, that is
FR_COMMAND_ZIP_GET_CLASS(comm)->add instead of
FR_COMMAND_ZIP_GET_CLASS(comm)->zip_add
Comment 8 srinath 2004-08-02 05:49:58 UTC
'add' is not a member of the FRCommandZipClass and hence
FR_COMMAND_ZIP_GET_CLASS(comm)->add does not work. Also
FR_COMMAND_GET_CLASS(comm)->add will not work because it is now pointing to
'fr_command_jar_add' function - a member of FRCommandJarClass. I don't think it
is  possible to remove zip_add.

I'm coming up with a more organised code soon.
Comment 9 srinath 2004-08-09 04:07:39 UTC
Created attachment 30355 [details] [review]
This is a unified patch for the enhancement.

This new patch, adds four new files. The java specific functions have been
moved into 'java-utils.h' and 'java-utils.c'. The code is more organised
compared to the previous patch. But the functionality is the same.

Paolo, please let me know about any changes u want me to make in the code.
Comment 10 Paolo Bacchilega 2006-10-22 14:13:28 UTC
patch applied to CVS (with some changes)
Comment 11 Paolo Bacchilega 2006-12-16 10:27:49 UTC
closing the bug...