Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 108618 - build with "eclipse.buildScript" fails on MacOS because of incorrect bootclasspath
Summary: build with "eclipse.buildScript" fails on MacOS because of incorrect bootclas...
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 3.1   Edit
Hardware: Macintosh All
: P3 normal with 1 vote (vote)
Target Milestone: 3.3 M5   Edit
Assignee: pde-build-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 147707 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-01 14:37 EDT by Francois Granade CLA
Modified: 2006-12-15 09:32 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francois Granade CLA 2005-09-01 14:37:13 EDT
Running the build on MacOS doesn't work because the rootclasspath property is
making incorrect assumptions on the location of the JRE. The build.xml generated
by the "eclipse.buildScript" ant task contain the following:

	<path id="path_bootclasspath">
		<fileset dir="${java.home}/lib">
			<include name="*.jar"/>
		</fileset>
	</path>

but on MacOS it should be:
	<path id="path_bootclasspath">
		<fileset dir="${java.home}/../Classes">
			<include name="*.jar"/>
		</fileset>
	</path>

To make it portable, the generated code should be:

	<condition property="dir_bootclasspath" value="${java.home}/../Classes">
		<os family="mac"/>
	</condition>
	<property name="dir_bootclasspath" value="${java.home}/lib"/>
	<path id="path_bootclasspath">
		<fileset dir="${dir_bootclasspath}">
			<include name="*.jar"/>
		</fileset>
	</path>


There's a workaround, see http://eclipse.techforge.com/index.php/article/188
Comment 1 Andrew Niefer CLA 2006-06-19 14:16:15 EDT
*** Bug 147707 has been marked as a duplicate of this bug. ***
Comment 2 Pascal Rapicault CLA 2006-12-15 09:32:52 EST
I fixed this in HEAD.