Bug 173641 - [sourcemapper] Multiple Java Source Attachments per Library
Summary: [sourcemapper] Multiple Java Source Attachments per Library
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2.1   Edit
Hardware: PC Windows XP
: P3 enhancement with 4 votes (vote)
Target Milestone: ---   Edit
Assignee: Jay Arthanareeswaran CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 119522 200521 209501 (view as bug list)
Depends on:
Blocks: 7292
  Show dependency tree
 
Reported: 2007-02-09 09:06 EST by Jonathan O'Connor CLA
Modified: 2018-05-21 06:13 EDT (History)
16 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan O'Connor CLA 2007-02-09 09:06:22 EST
Many open source projects have source in multiple directories. For example, compass has source in tiger/src, sandbox/src and main/src. Sadly, if I try and add a source attachment to a jar, it only lets me add either a file, a folder or a workspace. I would like to add more than one.

Yes, I suppose I could create a new project and add the workspace with multiple source folders, but I already have too many projects, and that takes more time.
Comment 1 Olivier Thomann CLA 2007-02-09 09:12:11 EST
This is a feature request.
Comment 2 Philipe Mulet CLA 2007-02-09 09:17:29 EST
Nice suggestion, but post 3.3 (since we are booked already until then)
Comment 3 Jonathan O'Connor CLA 2007-02-09 10:28:31 EST
Philippe,
I'm a patient person, I guess I'll just have to use the workaround until then. Keep up the good work on 3.3.

Thanks, Jonathan
Comment 4 Jerome Lanneluc CLA 2007-11-30 10:22:47 EST
*** Bug 208171 has been marked as a duplicate of this bug. ***
Comment 5 Philipe Mulet CLA 2008-07-09 09:59:33 EDT
*** Bug 200521 has been marked as a duplicate of this bug. ***
Comment 6 Jerome Lanneluc CLA 2008-08-25 07:34:03 EDT
*** Bug 119522 has been marked as a duplicate of this bug. ***
Comment 7 Jerome Lanneluc CLA 2008-09-11 10:52:26 EDT
Targeting M5
Comment 8 Jerome Lanneluc CLA 2009-01-09 05:12:00 EST
Not for 3.5
Comment 9 Abhay Pradhan CLA 2009-01-21 15:08:02 EST
*** Bug 209501 has been marked as a duplicate of this bug. ***
Comment 10 thomas menzel CLA 2009-12-16 02:56:21 EST
when/if doing this it would be nice to also have the possibility to enter an internal path as is possible for the javadoc.

i also think that i would be a good idea to make these 2 dialog pages (source and java doc location) identical.
Comment 11 Mat Jaggard CLA 2012-11-22 05:58:07 EST
What was the latest on this? I can't seem to find a way to attach multiple source files to a single JAR.

For example, the JDK has several disparate sets of source and I'd like to be able to use all of them. At present, I can't view the source for sun.print.RasterPrinterJob in eclipse.
Comment 12 Alexander Veit CLA 2013-06-16 05:25:04 EDT
https://bugs.eclipse.org/bugs/show_bug.cgi?id=119522

Strange. This bugs seems to be open since eight years now, while I find myself switching source attachments almost every day. :)
Comment 13 Jay Arthanareeswaran CLA 2013-06-17 00:06:13 EDT
Marking for 4.4. Note that a fix depends on how complicated it going to be and how much effort it will take and at the moment, we are not promising a fix, but will give due consideration for 4.4.
Comment 14 Markus Keller CLA 2013-06-17 05:14:03 EDT
Since the existing APIs on IClasspathEntry and JavaCore cannot be modified, the new API should be a new IClasspathAttribute constant, e.g. ADDITIONAL_SOURCE_ATTACHMENTS. The attribute should contain triplets of {sourceAttachmentPath, sourceAttachmentRootPath, sourceAttachmentEncoding}, and we should define helper methods to encode and decode the attribute from/to a String[attributeIndex][3].
Comment 15 Jay Arthanareeswaran CLA 2014-04-14 10:42:33 EDT
I know I promised a 'due consideration' for 4.4. But due to the ongoing Java 8 maintenance work, we won't be able to take this up during Luna time frame. Moving it to 4.5.
Comment 16 Jay Arthanareeswaran CLA 2015-05-12 02:56:44 EDT
Sorry, this needs to be moved out of 4.5.
Comment 17 Jay Arthanareeswaran CLA 2016-04-05 04:32:57 EDT
No progress yet and unlikely to get time during 4.6. Moving out.
Comment 18 Manoj N Palat CLA 2018-05-21 06:13:54 EDT
Bulk move out of 4.8