[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [p2-dev] How can I create a p2 profile for my RCP product?
On Sun, Apr 11, 2010 at 2:04 PM, Gabriel Petrovay <gabipetrovay@xxxxxxxxx>
I am running a headless Eclipse product (I hope headless is the
correct term when running it NOT HOSTED in another Eclipse workbench).
Headless usually refers to an application without a UI. :-)
The .p2 directory gets created when I start the product. When I want
to access the p2 update UI, the ProvisionException is thrown because
ANY_PROFILE is false. How can I create one profile (maybe a default
SDKProfile) such that I can make my Eclipse product updatable.
Currently I get the notorious message:
"Cannot complete the request. This installation has not been
configured properly for Software Updates."
Right, so this technically means that you don't have a p2 agent. Creating a p2 directory comes down to how you are doing your builds. If you are simply "exporting" from the workbench (product->export), then make sure you select the checky box "generate a metadata repository). If you are using PDE/Build for this, make sure you have the option p2.gathering=true.
In both cases this will cause the build infrastructure to properly "install" your application. It is the install step that creates the directory and thus gives you a managing agent.
I hope that helps.
I have also opened a bug for this:
MSc Gabriel Petrovay
p2-dev mailing list
R. Ian Bull | EclipseSource Victoria | +1 250 477 7484
http://eclipsesource.com | http://twitter.com/eclipsesource