Bug 96670 - Allow multiple attached source locations for a JAR/class folder on the Java build path
Summary: Allow multiple attached source locations for a JAR/class folder on the Java b...
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-25 14:15 EDT by Jim McMaster CLA
Modified: 2012-11-22 11:07 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim McMaster CLA 2005-05-25 14:15:28 EDT
Some projects, like Apache XmlBeans, package class files from multiple source
directories into a single jar file.  Since it is not possible to attach multiple
source locations to a jar, it is not possible to view the source for all classes
for the jar in the editor.

An alternative would be for eclipse to scan subdirectories of the attached
source location when looking fo source.  This would allow specification of the
parent for multiple source directories.
Comment 1 Brian Anderson CLA 2006-01-09 16:47:25 EST
The second alternative mentioned in the original description seems to work for 3.1.1.  Perhaps this enhancement is impelemented?
Comment 2 Olivier Thomann CLA 2006-10-06 14:53:37 EDT
Closing as WORKSFORME since now the source mapper has support multiple roots.
Comment 3 Mat Jaggard CLA 2012-11-22 06:00:20 EST
How does this work? I can't seem to attach more than one source location to a JAR file.
Comment 4 Jay Arthanareeswaran CLA 2012-11-22 11:07:05 EST
(In reply to comment #3)
> How does this work? I can't seem to attach more than one source location to
> a JAR file.

For that to work, you need to have all the source folders under a folder and add that as the source location. The sub folders of the source locations are scanned and considered as multiple roots. I didn't confirm this now, but that's my understanding of the alternative being discussed.