Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 338123

Summary: Support for the flag -addSources on p2-director-app
Product: [Eclipse Project] Equinox Reporter: Hugues Malphettes <hmalphettes>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: d_a_carver, georgi.stanev, holger.staudacher, irbull, jeffmcaffer
Version: 3.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
-addSources support in p2 director app
none
launch configuration used to test the patch none

Description Hugues Malphettes CLA 2011-02-24 12:36:34 EST
Created attachment 189723 [details]
-addSources support in p2 director app

Jeff McAfer added the ability to provision the source bundles in PDE without having to select each one of the source features in the bug #328929

This enhancement is a port of that code directly into p2director.
The suggested flag to enable the provisioning of the source bundles is 'addSources'.
Comment 1 Hugues Malphettes CLA 2011-02-24 12:37:52 EST
Created attachment 189724 [details]
launch configuration used to test the patch

This launch configuration installs the EclipseRTWebStarterKit of Helios.
Comment 2 Hugues Malphettes CLA 2011-02-28 03:23:40 EST
There are some efforts at the moment to re-use p2-director for various
purposes. In my biased opinion "-addSources" would fit quite well in p2director
itself. If you think there is a better home for it, let us know!
The 2 other places I am aware of is Eclipse Packaging "p2 bootstrapper"
(http://eclipsesource.com/blogs/2011/01/14/sap-likes-eclipse-runtime-technologies/)
and the equinox incubator where Tobias Oberlies is prototyping some extensions
to p2-director.

Another way to tackle would be to refactor p2-director so that it is possible
to extend it and build this type of thing without having to fork the whole
Director application class.
Comment 3 David Carver CLA 2012-09-13 16:35:34 EDT
Ian, is there anything we need to do to move this along.  If the current patch is stale, I can work with Hugues to get it refreshed.  Would be helpful in our companies use of p2Director to have this functionality.  

Currently we are running and maintaining a fork for this functionality.