Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[p2-dev] P2 profile and osgi.configuration.area

Is there a way to change the default "osgi.configuration.area" while maintaining P2 profile?

Here is the problem I have, I am using Eclipse 3.5 RC4.

1) I build the product using PDE headless productBuild.xml, and enable P2 with the followings settings in the build.properties:

p2.gathering=true
p2.flavor=MyProduct
p2.director.profile=MyProductProfile

2) In my "MyProduct.product" file, I define only one top level feature which includes all the sub-features and Eclipse platforms, CVS, CDT. The build generates P2 metadata and runs the P2 director. I have a final product at the end.

3) In "<MyProduct>/eclipse/p2/org.eclipse.equinox.p2.engine/profileRegistry" directory I have several profiles. I launch the product and I can see all my features listed in the "About -> Installation Details" panel. My product update site URL shows at the "Preference -> Install/Update -> Available Software Sites".

4) However if I modify the "config.ini" file, add "osgi.configuration.area=@user.home/.MyProduct/configuration" and launch the product again, things mess up. I only see my top level feature, the update site URL does not show. I have a new profile under "@user.home/.MyProduct/p2/org.eclipse.equinox.p2.engine/profileRegistry" directory which only has very minimal configuration.

Is there a way to re-define the osgi.configuration.area while still maintaining my original P2 profiles?

Thanks,
Andy


Back to the top