How to hook into p2 install/update process? [message #802778] |
Mon, 20 February 2012 12:35 |
Eclipse User |
|
|
|
Dear Community,
I need to execute a piece of code at the point in time when a p2 installation/update process starts or when it is finished. I know how to execute touchpoint actions, but this is not what I can use because these actions are called for each installable unit in the installation process. What I'm looking for is a way to execute code exactly once during the install/update either at the end or at the beginning of the process.
Here is more background for my case:
- I'm actually calling a touchpoint action during the install phase for each of my features which are located on an update site
- I want to achieve that my action can figure out that it has been called before during the actual install/update because I want to execute my action only once per install/update process (and of course only if one of my features gets installed)
- I tried using a static within my action. The lifetime of the static is "too long" because it is keeping its state if a user performs multiple subsequent installs without restarting
[Updated on: Mon, 20 February 2012 12:36] by Moderator Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03017 seconds