Question

I would like to use p2 to perform an installation through code, much as the p2 Director does it, but I can't find the API. Could someone please point me to a good place to start looking?

Was it helpful?

Solution

I found a good starting point in the class DirectorApplication, which is part of the plug-in org.eclipse.equinox.p2.director.app.

OTHER TIPS

I use a script to perform this operation. There you can define special variables in case you need them. A script which is passed to ruby and run. You should be able to do the same in JAVA. Depends though how platform-independent should it be.

An idea for the API would be to look how the Marketplace Client plugin does the installation of the Marketplace plugins.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top