[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] Self-Hosting p2 and PDE SelfHostingProfile

Hi Gunnar, 

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:
	-Declipse.p2.data.area=<fileURLTop2FolderOfExportedApp>
	-Declipse.p2.profile=<profileIdOfExportedApp>

HTH

PaScaL

On 2010-07-23, at 5:22 PM, Gunnar Wagenknecht wrote:

> Hi,
> 
> 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
> InstallOperation.
> 
> 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
> parameter:
> [(&(|(osgi.arch=x86)(osgi.arch=x86_64))(|(osgi.os=linux)(osgi.os=win32)))]
> 
> 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
> 
> -- 
> Gunnar Wagenknecht
> gunnar@xxxxxxxxxxxxxxx
> http://wagenknecht.org/
> _______________________________________________
> p2-dev mailing list
> p2-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/p2-dev