[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [p2-dev] P2 profile and osgi.configuration.area
|
It happens even I don't modify the "config.ini".
On Linux when the product is a shared installed owned by super-user
"root" and run by a normal user, Equinox notices that the default
"eclipse/configuration" area is not write-able and creates a personal
".eclipse/<configuration>" area. I see the same problem happening in
this settings.
Is it an expected behavior or is it a regression?
Andy Jin wrote:
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
_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev