[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [p2-dev] Self-Hosting p2 and PDE SelfHostingProfile
- From: Pascal Rapicault <pascal@xxxxxxxxxxxx>
- Date: Sat, 24 Jul 2010 20:28:50 +0200
- Delivered-to: email@example.com
The problem is likely caused by the absence of os / ws / arch properties in the profile. To confirm this, look into the details of the command line argument being effectively passed to the VM (debug view, right click on the process), find the profile and see if you can find a property similar to this (<property name='org.eclipse.equinox.p2.environments' value='osgi.ws=cocoa,osgi.arch=x86_64,osgi.os=macosx'/>)
Should this be the problem, your only way to continue testing your selfhosting is to first completely export your application (p2 enabled), then change your launch config to disable PDE selfhosting ability and set the following VM Args:
On 2010-07-23, at 5:22 PM, Gunnar Wagenknecht wrote:
> I'm playing with the p2 operations API. However, I have some issue when
> running/debugging self-hosted using the PDE generated
> SelfHostingProfile. I have an application that I'd like to update using
> UpdateOperation and where I'd also like to install stuff using
> I can't get any of the operations working when self-hosting. Both work
> fine when I export a product and use them there.
> Well, I somehow expected UpdateOperation to not find anything to update
> because the root IUs in SelfHostingProfile are just bundles and not
> whole features or even product IUs (which I have in the repository).
> But when using InstallOperation I get a status indicating that the
> installation could not be performed because of a non matching filter.
> Funny thing is, that the same IU installs fine when not self-hosting.
> The non-matching filter is an os/arch filter which actually should match.
> During debugging I tracked the filter down to:
> operand: properties ~= $0
> I'm self-hosting on win32/x86. I have no idea why the filter does not
> match. Any tips for further debugging? Do I need to specify/initialize
> the environment somewhere? I suspect that the profile is not setup
> correctly but I'm not sure.
> Thanks in advance!
> Gunnar Wagenknecht
> p2-dev mailing list