Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 283060

Summary: Context repositories not passed to the product publisher
Product: [Eclipse Project] PDE Reporter: Andrew Niefer <aniefer>
Component: BuildAssignee: pde-build-inbox <pde-build-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 4.0   
Target Milestone: 3.6 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Andrew Niefer CLA 2009-07-09 14:23:48 EDT
When publishing a .product file using <p2.publish.product> we aren't adding the context repositories.  This means, that if a product requires bundles for which start levels must be set, and those bundles are not already in the build repo then we will fail to create the start level IUs.

In these cases, such bundles are generally expected to be found in the context repositories, we need to pass those in.
Comment 1 Andrew Niefer CLA 2009-07-09 14:49:47 EDT
Workaround for this is

1) Copy the customAssembly.xml from pde.build into your builder.  
2) Due to bug 283063, add "customAssembly=${builder}/customAssembly.xml" to your builder's build.properties file.

3) Edit customAssembly.xml/post.gather.bin.parts, and do a mirror of the IUs that require start levels.  Eg: here we are getting the default bundles that need start levels, and they are coming from the repo that was transformed with repo2runnable.


	<target name="post.gather.bin.parts">
		<p2.mirror>
			<source location="file:${transformedRepoLocation}" />
			<destination  location="${p2.build.repo}" />
			<iu id="org.eclipse.core.runtime" />
			<iu id="org.eclipse.equinox.simpleconfigurator" />
			<iu id="org.eclipse.equinox.common" />
			<iu id="org.eclipse.update.configurator" />
		</p2.mirror>
	</target>
Comment 2 Andrew Niefer CLA 2009-07-10 15:33:26 EDT
done