Bug 560363 - "Java Source Attachment" + "Path within archive"
Summary: "Java Source Attachment" + "Path within archive"
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.15   Edit
Hardware: PC Windows 10
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-20 14:17 EST by Andrew Thomas CLA
Modified: 2020-02-20 14:17 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Thomas CLA 2020-02-20 14:17:11 EST
In the properties for a referenced library, for "Javadoc Location," I can specify both an archive path *and* a "Path within archive". This allows me to specify a subfolder in a zip.

But for "Java Source Attachment," I can specify only a path. 

This can be troublesome when there are multiple source trees in one zip.

For example, I have one github project with multiple jars, whose source zip contains a separate subtree for each jar, each at a different path within the archive. I'm checking this into local source control as the single, original zip.

What I'm currently doing is unzipping the source locally, linking to unzipped source, and communicating to other engineers that they each need to do the same to see the source in the IDE.

What I'd like to do instead is link the jars to the source code at a path within the archive -- like we can do with Javadoc -- and have it just work for other engineers.