Did you take a look at the operations bundle? It is the API that is
being used by the UI.
If this is not sufficient, then you will have to directly code against
the internal of the p2 UI.
Otherwise if you were ok to run with the UI, you could use something
like SWTBot to drive the UI
HTH
Pascal
On 12/02/2014 01:04 PM, Orlando Ezequiel Rincon Ferrera/Mexico/IBM wrote:
Hello everyone:
I'm looking for a way to do headless install & upgrade in a way that
is 100% equivalent to the UI of Help > Check for updates, i.e. I don't
want to just mimic the result doing an uninstall / install procedure
(as p2 director does), but get the result exactly as if I were using
the UI.
Now, I have analyzed the following possibilities:
1) p2 director: It does not have the update feature implemented
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=279659), so you can
mimic it using uninstall / install of IU, but that's not what I really
need since I can not make sure an actual update (through the Eclipse
UI) is going to give the same result.
2) Admin UI: This looked promising but it seems the development was
dropped a long time ago, so there are no newer release of this
(https://wiki.eclipse.org/Equinox/p2/Admin_UI_Users_Guide,
http://www.eclipse.org/forums/index.php/t/276250/). Also, this seems
to be using p2 director under the covers (which as previous point, has
no update feature) and, of course, even it really works, would need
the effort to take the code and implement an apparently un-existing
feature to make it run headlessly.
3) I found this one recently:
https://github.com/MentorEmbedded/p2-installer. It looks it could do
the work, but can't say for sure yet since I see no real working
sample about them.
So, is there any known approach I could use to perform this Eclipse
upgrade that is equivalent to make it through the UI? Or any
recommendations on the path to follow?
Thank you very much in advance
Orlando E. Rincón Ferrera.
_______________________________________________
p2-dev mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/p2-dev
_______________________________________________
p2-dev mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/p2-dev