[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[p2-dev] Is it possible to install a feature into an RCP app at build time?

Hello p2ers,

I'm currently building an RCP application.  With several optional Features that provide my business functionality to the application.

I also have some Features that are required, and I'm trying to set up my RCP build in such a way that when the user obtains the application, these required Features will be pre-installed.

I'd like to have the user experience be such that when the user uses "Help > Check For Updates" the application will already have these required Features installed and the Update Sites available and enabled, so that the check will successfully update these Features if needed.

I've figured out how to add the update site using a p2.inf file

 org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(location:http${#58}//mydomain.com/myrepository/,type:0,name:My Feature A Name,enabled:true);\
 org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(location:http${#58}// mydomain.com/myrepository/,type:1,name:My Feature A Name,enabled:true);

But I haven't figured out how to have these required Features pre-installed.  

Any help would be greatly appreciated.

Trace Windham