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

Bug 327948

Summary: Headless build fails after upgrade from Galileo to Helios
Product: [Eclipse Project] PDE Reporter: Matthew Trees <matthew_a_trees>
Component: BuildAssignee: pde-build-inbox <pde-build-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: major    
Priority: P3    
Version: 3.6.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Matthew Trees CLA 2010-10-15 15:27:36 EDT
Build Identifier: 20100917-0705

BUILD FAILED
C:\sandbox\eclipse-reporting-helios-win32\data\xxxxx_dev\com.xxxxxx.build.script\buildxxxxxxxProduct.xml:36: The following error occurred while executing this line:
C:\sandbox\eclipse-reporting-helios-win32\eclipse\plugins\org.eclipse.pde.build_3.6.1.R36x_v20100823\scripts\productBuild\productBuild.xml:42: The following error occurred while executing this line:
C:\sandbox\eclipse-reporting-helios-win32\eclipse\plugins\org.eclipse.pde.build_3.6.1.R36x_v20100823\scripts\build.xml:91: The following error occurred while executing this line:
C:\sandbox\eclipse-reporting-helios-win32\eclipse\plugins\org.eclipse.pde.build_3.6.1.R36x_v20100823\templates\headless-build\customTargets.xml:12: The following error occurred while executing this line:
C:\sandbox\eclipse-reporting-helios-win32\eclipse\plugins\org.eclipse.pde.build_3.6.1.R36x_v20100823\scripts\productBuild\allElements.xml:20: The following error occurred while executing this line:
C:\sandbox\eclipse-reporting-helios-win32\eclipse\plugins\org.eclipse.pde.build_3.6.1.R36x_v20100823\scripts\genericTargets.xml:107: Processing inclusion from feature org.eclipse.equinox.executable: Unable to find plug-in: org.eclipse.equinox.launcher_1.1.0.v20100507. Please check the error log for more details.

I've seen several reports of this in an EclipseZone forum to go with my own experience...  No solution.  http://www.eclipsezone.com/eclipse/forums/t102785.html

Reproducible: Always

Steps to Reproduce:
1. Upgraded to Helios
2. Using eclipse-3.6.1-delta-pack
3. Using a target platform.

Same build script that runs in Galileo does not run in Helios
Build script isn't finding org.eclipse.equinox.launcher_1.1.0.v20100507 in Helios.

Note: I can copy the missing plugin into my deltapack plugins dir and get the script to run but this feels like the wrong solution and my RCP app. subsequently reveals dependency problems with this plugin when showing the available update.


This is the headless, Ant, product based, p2 enabled, pde build script:

<project default="main">
	
	<path id="xmltask.ant.classpath">
			<pathelement location="./lib/xmltask.jar"/>
	</path>
				
	<taskdef name="xmltask" classname="com.oopsconsultancy.xmltask.ant.XmlTask" classpathref="xmltask.ant.classpath"/>
	<property name="editor.rcp" value="${basedir}/../com.xxxxxxxx.editor.rcp"/>
	<property file="build.properties"/>
	
	<target name="main">
		<property name="baseLocation" value="${eclipse.home}/xxxxxxxxTargetPlatform"/>
		<!-- by default, check for deltapack co-located with eclipse -->
		<property name="deltapack" value="${eclipse.home}/../deltapack/eclipse"/>

		<!-- Check that we have a deltapack -->
		<available property="haveDeltaPack" file="${deltapack}"/>
		<fail unless="haveDeltaPack" message="The deltapack is required to build this product.  Please edit buildProduct.xml or set the &quot;deltapack&quot; property." />
		
		<!-- Update the version number-->
		<antcall target="updateApplicationProperties"></antcall>
		<antcall target="updateProductFile"></antcall>
		
		<!-- refresh the workspace -->
		<eclipse.convertPath fileSystemPath="${editor.rcp}" property="resourcePath"/>
		<eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/>
			
		<property name="builder" value="${basedir}" />
		<property name="buildDirectory" value="${basedir}/buildDirectory"/>
		<property name="pluginPath" value="${basedir}/..${path.separator}${deltapack}" />
		<property name="buildTempFolder" value="${buildDirectory}" />
			
		<ant antfile="${eclipse.pdebuild.scripts}/productBuild/productBuild.xml" />
		
		<property name="xxxxxxxxxxxxxBuilds" value="${eclipse.home}/../../Builds/xxxxxxxxxxxxx"/>
		<property name="newBuildDir" value="${xxxxxxxxxxxxxBuilds}/${build.version}"/>
		<property name="repository" value="${newBuildDir}/repository"/>
		
		<!-- move desired files to build directory -->
		<move todir="${newBuildDir}">
			<fileset dir="${buildDirectory}/I.xxxxxxxxBuild" includes="*.zip"/>
		</move>
		<move todir="${repository}">
			<fileset dir="${buildDirectory}/buildRepo"/>
		</move>
		
		<antcall target="refreshWorkspace"/>

	</target>
	
	<target name="updateApplicationProperties">
		<property name="applicationProperties" value="${editor.rcp}/properties/application.properties"/>
		<property file="${applicationProperties}"/>
		
		<replace file="${applicationProperties}" token="${application.version}" value="${build.version}"/>
		
		<property name="xxxxxxTemplateProperties" value="${xxxxxx.templates}/properties/messages.properties"/>
		<property file="${xxxxxxTemplateProperties}"/>
			
		<replace file="${xxxxxxTemplateProperties}" token="${application.version}" value="${build.version}"/>
		
	</target>
		
	<target name="updateProductFile">
		<property name="xxxxxxxxProduct" value="${editor.rcp}/xxxxxxxx.product"/>
		<xmltask source="${xxxxxxxxProduct}" dest="${xxxxxxxxProduct}" failWithoutMatch="true">
			<replace path="//product[@version]/@version" withText="${build.version}"/>
		</xmltask>
	</target>
	
	<target name="refreshWorkspace">
		<!-- refresh the workspace -->
		<eclipse.convertPath fileSystemPath="${basedir}" property="resourcePath"/>
		<eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/>
	</target>
	
</project>
Comment 1 Lars Vogel CLA 2018-12-03 09:12:01 EST
Currently we are not actively enhancing PDE build anymore. Therefore, I close this bug as WONTFIX. 

Please reopen, if you plan to provide a fix.
Comment 2 Lars Vogel CLA 2018-12-03 09:12:47 EST
Currently we are not actively enhancing PDE build anymore. Therefore, I close this bug as WONTFIX. 

Please reopen, if you plan to provide a fix.