| Automatic installing and starting bundles with P2 director [message #524429]
||Wed, 31 March 2010 21:38
| Anthony Dahanne
Registered: March 2010
Hello everyone !|
Is it possible to accomplish this scenario ?
- a p2 repository containing the feature my.feature (referencing my.plugin)
- 2 identical eclipse galileo installations : the first is my builder (to launch p2director) and the second is my target
I want to perform this :
- deploy my.plugin into my target eclipse platform, using p2director, and also automatically start this plugin
easy right ?
It works with
java -jar C:\tmp\builder\plugins\org.eclipse.equinox.launcher.jar -application org.eclipse.equinox.p2.director -repository file:C:/simpleupdatesite/ -installIU my.feature -destination c:\tmp\target
But I want to do this WHILE the target platform is launched and alive, without re starting it (I want it to be "hot deployed")
I tried playing with the touchpoints (p2.inf) ; I know they are loaded fine, for example such a p2.inf will make my.plugin active... if I relaunch my target platform
To sum up with, is it posssible to add IU(s) to a running equinox and start them (without stopping/restarting the running equinox)
Thank you all for your answers !
[Updated on: Wed, 31 March 2010 21:41]
Report message to a moderator
|Re: Automatic installing and starting bundles with P2 director [message #524441 is a reply to message #524429]
||Wed, 31 March 2010 23:38
| Sebastien Angers
Registered: July 2009
if your IU installation is successful, bundles.info file will be updated.
from the OSGi console of your target installation, you can perform
osgi> confapply [<config URL>]
example: osgi> confapply file:<config dir>/bundles.info
and it will enable the changes from bundles.info to the OSGi Framework.
But it would be great if it was possible to do it directly from a P2 touchpoint instruction or if it was automatically done from the installIU command.
Powered by FUDForum
. Page generated in 0.02910 seconds