Bug 202464 - [prov] handle source as individual bundles
Summary: [prov] handle source as individual bundles
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Incubator (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M5   Edit
Assignee: Pascal Rapicault CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 148782 215464 217304
  Show dependency tree
 
Reported: 2007-09-06 10:34 EDT by Jeff McAffer CLA
Modified: 2008-01-31 12:45 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 Jeff McAffer CLA 2007-09-06 10:34:42 EDT
Bug 202462 and bug 148782 call for source to be delivered in individual bundles.  To do this effeciently we need to have a way of identifying and handling differently source bundles.  Ultimately source bundles need never be actually installed as they are never run.  PDE discovers them through its model (workspace and target).  p2 should make this easy to implement and manage.
Comment 1 Thomas Watson CLA 2008-01-16 10:05:46 EST
In bug 215464 we show a performance slowdown on headless startup because of the increase number of source bundles.  Any outlook on when this bug will be fixed?

Hopefully the same fix to p2 can also be ported to update to fix bug 215491.
Comment 2 Pascal Rapicault CLA 2008-01-21 22:07:49 EST
I'll try to do something for M5. However if that was enabled, I'm unclear on how PDE would find the source bundles.
Comment 3 Thomas Watson CLA 2008-01-22 09:03:13 EST
My understanding is that PDE does not use the source bundles from the running host environment.  Instead it finds them in the configured target.  The target set of bundles in many cases does not match the set of bundles running in the host.  This forces PDE to find and parse the bundle manifests from the target themselves to find the source bundles.  The end result is the source bundles do not actually have to be installed for PDE to discover them.
Comment 4 Curtis Windatt CLA 2008-01-22 09:45:53 EST
(In reply to comment #3)
> My understanding is that PDE does not use the source bundles from the running
> host environment.  Instead it finds them in the configured target.  The target
> set of bundles in many cases does not match the set of bundles running in the
> host.  This forces PDE to find and parse the bundle manifests from the target
> themselves to find the source bundles.  The end result is the source bundles do
> not actually have to be installed for PDE to discover them.
> 

Thomas is correct, PDE finds source bundles in the target platform and they do not have to be installed in the host.  You can see the current known source bundles on the Source Code Locations tab on the Target Platform preference page.
Comment 5 Pascal Rapicault CLA 2008-01-23 09:27:10 EST
And in the case of a p2 provisioned SDK, the content of the target platform is derived from the content of the bundles.txt which means that the source bundles will be nowhere to be found :-).
I have released a change in the MD Generator that will cause the bundles.txt to not contain the source bundles at install time. 
 
Comment 6 Pascal Rapicault CLA 2008-01-29 17:45:21 EST
I have released support to write a file listing all the source bundles separately from the bundles.txt.
The file will be written in the configuration folder under 
   org.eclipse.source.bundles/source.bundles.txt

To leverage the new support you will need to regenerate metadata.
The name of the folders and paths can be changed.