Community
Participate
Working Groups
In order to successfully install IUs with environment specific filters the self-hosting profile generated by PDE during launch must contain environment properties. Relevant element: org.eclipse.pde.internal.core.P2Utils.createProfile(String, File, Collection) // props.setProperty(IProfile.PROP_INSTALL_FOLDER, registryArea.getAbsolutePath()); // props.put(IProfile.PROP_CACHE, registryArea.getAbsolutePath()); props.put(IProfile.PROP_INSTALL_FEATURES, Boolean.TRUE.toString()); // set up environment & NL properly so OS specific fragments are down loaded/installed props.put(IProfile.PROP_ENVIRONMENTS, generateEnvironmentProperties()); props.put(IProfile.PROP_NL, generateNLProperty()); I'm not sure about PROP_INSTALL_FOLDER and PROP_CACHE. They should probably be set as well.
Created attachment 175096 [details] patch for P2Utils
I thought this might be an issue, patch looks reasonable. Marking for M1.
Never got a chance to look at this, will do for M2.
Created attachment 176181 [details] Updated patch This patch sets the environment properties with less code change. Gunnar, please give it a try.
(In reply to comment #4) > This patch sets the environment properties with less code change. Gunnar, > please give it a try. This works as well. But I was wondering if we should set the IProfile.PROP_INSTALL_FEATURES as well? It's usually set in the p2 profiles.
(In reply to comment #5) > This works as well. But I was wondering if we should set the > IProfile.PROP_INSTALL_FEATURES as well? It's usually set in the p2 profiles. I don't think that there is any need to have update features in the profile, but it doesn't appear to harm anything, so I will put the property in. Fixed in HEAD.
Verified in I20100915-0100