Bug 514630 - Target Definition to resolve sources against all known repos
Summary: Target Definition to resolve sources against all known repos
Status: NEW
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.5   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-03 05:33 EDT by Mickael Istria CLA
Modified: 2018-01-31 09:32 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 Mickael Istria CLA 2017-04-03 05:33:23 EDT
Currently, it seems like the metadata resolution only happens against the repos defined in the .target. So if `includeSources=true` but defined repo don't contain source bundles, the resolved target platform won't contain even if those are available locally or on other know repos.
As the typical use-case to request sources is for development, it would make sense, at least from the IDE, to not require metadata to add source bundles to target definition. Instead the resolution could simply get the source artifacts from all known repos, like implemented by P2TargetUtils.
Comment 1 Eclipse Genie CLA 2017-04-03 10:13:15 EDT
New Gerrit change created: https://git.eclipse.org/r/94300
Comment 2 Eclipse Genie CLA 2017-04-03 10:13:20 EDT
New Gerrit change created: https://git.eclipse.org/r/94301
Comment 3 Mickael Istria CLA 2017-04-03 10:33:54 EDT
I spent more time investigating this, and I am blocked by the fact that I do not find a way to retrieve an instance of the `RepositoryTracker` that's used by the p2 "Available Software sites" preference page.
Any hint would be welcome!
Comment 4 Lucas Bullen CLA 2018-01-31 09:26:52 EST
Do you have a testing scenario I can use to see if I can find a solution?
Comment 5 Mickael Istria CLA 2018-01-31 09:32:55 EST
IIRC, I did create my own test scenario. I built 2 p2 repos: one containing a dummy bundle without the source, and the other one containing bundle+source.bundle. Then put the URL for the non-source repo in .target and add the source repo to the known locations from p2 preferences. Loading the .target didn't make the source visible.
However, I don't remember where I did place the test repos...