|Re: Fw: [p2-dev] Using the new "sofware site" target provisioner|
I think the trick is to use the profile but skip the planner phase. This means that a the full closure of IU's must be computed in a different way but that's the only difference as far as I can tell. One simple way of doing the computation is to use the PermissiveSlicer to select the transitive closure of the selected top features. Once the set of IU's has been determined, an InstallableUnitOperand is created for each one and then the collect phase is executed as normal.
The result is an IBundleContainer that is polymorph, i.e. you don't need to reload it just because you change the target platform os/ws/arch.
The really interesting thing about this is that if such a container was present, there would be no need at all for the delta-pack. It would become obsolete in an instance. Just point to the platform repository at Eclipse.org and you're all set.
If you're interested, I can provide a patch that alters the current IUBundleContainer to do it this way. IMO, it would make the "Sofware site" provisioner a lot more useful.