Skip to main content



      Home
Home » Eclipse Projects » P2 » Installing features into different Eclipse instance
Installing features into different Eclipse instance [message #1403962] Mon, 28 July 2014 14:02 Go to next message
Eclipse UserFriend
Hello,

I am using code cited here to install features into product. Is there a way to install features into different instance of Eclipse? Right now installation happens in running Eclipse instance from IDE, and I want to install into a build product. I can do this using director application's "-destination" argument, how would I do the same using P2 API?

Thanks,
Alex

[Updated on: Mon, 28 July 2014 14:02] by Moderator

Re: Installing features into different Eclipse instance [message #1403978 is a reply to message #1403962] Mon, 28 July 2014 17:39 Go to previous messageGo to next message
Eclipse UserFriend
You need to create a ProvisioningAgent pointing at the p2 area of the instance to manipulate. From there, you need to make sure that you obtain all the services from this agent. I don't have any specific example at hand but I know PDE is doing something similar when dealing with target platforms.
To create an instance of IProvisioningAgent use the IProvisioningAgentProvider.
Re: Installing features into different Eclipse instance [message #1404249 is a reply to message #1403978] Wed, 30 July 2014 11:48 Go to previous message
Eclipse UserFriend
Thanks Pascal, I got it working.
Previous Topic:Logging in headless P2 director
Next Topic:Querying for installed features
Goto Forum:
  


Current Time: Mon Jun 23 19:05:44 EDT 2025

Powered by FUDForum. Page generated in 0.04365 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top