[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
For bundles to be installed in OSGi, a CU indicating to do so needs to be attached to the IU representing the bundle.
Most of the time, the tooling.osgi.bundle.default CU is all you need since it just installs a bundle at start level 4 and does not start it.
This attachment is represented by a ResolvedIU which has the original IU and the additional fragments.
Note that normally the planned returned by the director will contain the proper attachment if of course the CUs had been passed to it.
Also you should be able to find an example of this in Jeff's code presented in the Runtime Revolution talk where the director remotely talks to the engine.
Scott Lewis ---03/30/2009 03:13:26 AM---I've been sending an IU and invoking the p2 engine from an external process, in order to install IU
Scott Lewis <slewis@xxxxxxxxxxxxxxxxx>
P2 developer discussions <p2-dev@xxxxxxxxxxx>
03/30/2009 03:13 AM
[p2-dev] p2 Engine
I've been sending an IU and invoking the p2 engine from an external
process, in order to install IU's into a running system.
I've determined that the IU that I am attempting to install on the
1) Is of type ResolvedInstallableUnit
2) The IU's contents get successfully written to the remote profile
(i.e. the profile gets updated)
3) The plugin artifacts get downloaded/written to plugins directory
4) The simple configurator manipulator does *not* write the new plugins
in the IU to the bundles.info (this means that confapply does *not*
install the plugins in the IU).
5) The engine does commit successfully, and I can see that the Eclipse
touchpoint is calling the simple configurator manipulator to write out
the new bundleInfos. But the bundleInfos list that is used by the
simple configurator does *not* contain the new bundles (those in the
IU). It does seem to contain all of the original bundles in the profile.
Does anyone have any pointers to look for why the new bundleInfos does
not include the new IU's plugins? Where should one look in the engine
to determine why the IU's bundles are not being included in the
bundles.info list? I can see that it's not ever changing.
p2-dev mailing list