Bug 81882 - [classpath] tar.gz source attachments for external jars
Summary: [classpath] tar.gz source attachments for external jars
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 229047
  Show dependency tree
 
Reported: 2004-12-23 17:02 EST by Ben Konrath CLA
Modified: 2009-11-17 08:53 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Konrath CLA 2004-12-23 17:02:40 EST
Now that the platform has support for importing tar and tar.gz files (see Bug
#79711), the JDT should allow the user to attach tar or tar.gz files to external
jars listed in Project Properties ->  Java Build Path -> Libraries tab.
Comment 1 Nitin Dahyabhai CLA 2005-01-06 00:34:05 EST
From what I've seen, various Open Source projects are using .tar.gz as a source
archive format due to a long history with C.  It's out there in the field, so
maybe JDT should handle working with it.
Comment 2 Philipe Mulet CLA 2005-04-07 08:09:33 EDT
Deferring post 3.1
Comment 3 Dani Megert CLA 2007-03-22 11:38:52 EDT
wrong component
Comment 4 Dani Megert CLA 2007-03-22 11:46:24 EDT
I thought that only the UI prevents this but it seems that this is also hard-coded on the JDT Core side.

I guess it would be probably simple to add that support.
Comment 5 Philipe Mulet CLA 2007-06-21 13:20:48 EDT
Seems reasonable depending on existing support for reading these.
Comment 6 Jerome Lanneluc CLA 2008-05-07 12:18:24 EDT
With the fix for bug 182360, you can now put any file on the build path.

However .tar.gz files cannot be opened using the ZipFile support from Java. We would need to either write a decoder or define an extension point so that a decoder can be provided by a third party.

Anyway deferring post 3.4 
Comment 7 Markus Keller CLA 2009-11-17 08:53:41 EST
> However .tar.gz files cannot be opened using the ZipFile support from Java. We
> would need to either write a decoder or define an extension point so that a
> decoder can be provided by a third party.

No, rather than writing yet another decoder, you should take org.eclipse.ui.internal.wizards.datatransfer.TarFile from org.eclipse.ui.ide and make it API somewhere (e.g. o.e.core.filesystem or o.e.equinox.common)