Skip to main content
Jump to: navigation, search

Platform-releng-sample-all

This is a a sample master ant script that could be used to specify the components to build if you are interested in emulating the platform build process.

Note: The real platform buildAll.xml file is located here http://dev.eclipse.org/viewcvs/index.cgi/*checkout*/org.eclipse.releng.eclipsebuilder/Attic/buildAll.xml?rev=1.1.2.7&only_with_tag=releng_test&content-type=text/plain

<project default="main.default">
	<property name="pdebuild.builders"
		value="${basedir}/../org.eclipse.releng.eclipsebuilder" />
	<property name="sdkHelper" location="${pdebuild.builders}/all/helper.xml" />
	<!--
		location used to contain pre-built plug-ins and features to compile
		against and package into build
	-->
	<property name="baseLocation" value="${buildDirectory}/baseLocation" />
	<!--
		properties file used to post build progress information to web and via
		e-mail
	-->
	<property file="monitor.properties" />
	<!--
		location of properties file containing last tag used for integration
		build. Used when comparing versions of map files for building.
	-->
	<property name="mapTag.properties"
		value="/home/users/releng/buildTools/eclipse30/mapTag.properties" />
	<!--
		location of properties file containing last performance reference test
		information
	-->
	<property name="ref.properties"
		value="/home/users/releng/buildTools/eclipse.perf/ref32.properties" />
	<property file="${ref.properties}" />
	<target name="init">
		<ant antfile="${sdkHelper}" target="printWarnings" />
		<ant antfile="${sdkHelper}" target="setLabels" />
		<mkdir dir="${baseLocation}" />
	</target>
	<target name="main.default" depends="init">
		<!--
			Checkout eclipse SDK examples feature and plugins to copy example doc
			directories into Eclipse SDK distributables
		-->
		<ant dir="${eclipse.pdebuild.scripts}" target="preBuild">
			<property name="builder" value="${pdebuild.builders}/sdk.examples" />
		</ant>
		<ant dir="${eclipse.pdebuild.scripts}" target="fetch">
			<property name="builder" value="${pdebuild.builders}/sdk.examples" />
		</ant>
 
      <!--Build distributables-->
		<ant dir="${eclipse.pdebuild.scripts}">
			<property name="builder" value="${pdebuild.builders}/sdk" />
		</ant>
		<ant dir="${eclipse.pdebuild.scripts}">
			<property name="builder" value="${pdebuild.builders}/sdk.tests" />
		</ant>
		<ant dir="${eclipse.pdebuild.scripts}">
			<property name="builder" value="${pdebuild.builders}/test.framework" />
			<property name="noclean" value="true" />
		</ant>
		<ant dir="${eclipse.pdebuild.scripts}">
			<property name="builder"
				value="${pdebuild.builders}/equinox/equinox-feature" />
			<property name="noclean" value="true" />
		</ant>
		<property name="target" value="main" />
		<ant dir="${eclipse.pdebuild.scripts}" target="${target}">
			<property name="builder" value="${pdebuild.builders}/equinox/launchers" />
			<property name="noclean" value="true" />
		</ant>
		<ant dir="${eclipse.pdebuild.scripts}">
			<property name="builder" value="${pdebuild.builders}/rcp.deltapack" />
		</ant>
		<ant dir="${eclipse.pdebuild.scripts}" target="${target}">
			<property name="builder" value="${pdebuild.builders}/rcp" />
			<property name="noclean" value="true" />
		</ant>
		<ant dir="${eclipse.pdebuild.scripts}" target="${target}">
			<property name="builder" value="${pdebuild.builders}/rcp.sdk" />
			<property name="noclean" value="true" />
		</ant>
		<ant dir="${eclipse.pdebuild.scripts}">
			<property name="builder" value="${pdebuild.builders}/platform" />
			<property name="noclean" value="true" />
		</ant>
		<ant dir="${eclipse.pdebuild.scripts}" target="${target}">
			<property name="builder" value="${pdebuild.builders}/platform.sdk" />
			<property name="noclean" value="true" />
		</ant>
		<ant dir="${eclipse.pdebuild.scripts}" target="${target}">
			<property name="builder" value="${pdebuild.builders}/jdt" />
			<property name="noclean" value="true" />
		</ant>
		<ant dir="${eclipse.pdebuild.scripts}" target="${target}">
			<property name="builder" value="${pdebuild.builders}/jdt.sdk" />
			<property name="noclean" value="true" />
		</ant>
		<ant dir="${eclipse.pdebuild.scripts}" target="${target}">
			<property name="builder" value="${pdebuild.builders}/pde" />
			<property name="noclean" value="true" />
		</ant>
		<ant dir="${eclipse.pdebuild.scripts}" target="${target}">
			<property name="builder" value="${pdebuild.builders}/pde.sdk" />
			<property name="noclean" value="true" />
		</ant>
		<ant dir="${eclipse.pdebuild.scripts}" target="${target}">
			<property name="builder" value="${pdebuild.builders}/team.extras" />
		</ant>
		<ant dir="${eclipse.pdebuild.scripts}" target="${target}">
			<property name="builder" value="${pdebuild.builders}/sdk.examples" />
		</ant>
		<ant dir="${eclipse.pdebuild.scripts}" target="${target}">
			<property name="builder" value="${pdebuild.builders}/releng.tools" />
		</ant>
 
      <!--Build SWT Binaries-->
		<ant antfile="${sdkHelper}" target="buildSWTBinaries" />
 
      <!--check for compile errors, mail logs with errors-->
		<ant antfile="${sdkHelper}" target="verifyCompile" />
 
      <!--publish and test the build-->
		<ant antfile="${sdkHelper}" target="publish" />
		<parallel>
			<ant antfile="${sdkHelper}" target="testInternalAPIReferences" />
			<ant antfile="${sdkHelper}" target="testAll" />
		</parallel>
	</target>
	<target name="main.packaged" depends="init">
		<antcall target="buildSourceDrops" />
		<ant antfile="build.xml" dir="${eclipse.pdebuild.scripts}" target="main">
			<property name="builder" value="${pdebuild.builders}/all" />
		</ant>
	</target>
	<target name="buildSourceDrops">
		<ant antfile="build.xml" dir="${eclipse.pdebuild.scripts}" target="preBuild">
			<property name="builder" value="${pdebuild.builders}/sdk" />
		</ant>
		<ant antfile="build.xml" dir="${eclipse.pdebuild.scripts}" target="fetch">
			<property name="builder" value="${pdebuild.builders}/sdk" />
		</ant>
		<ant antfile="build.xml" dir="${eclipse.pdebuild.scripts}" target="generate">
			<property name="builder" value="${pdebuild.builders}/sdk" />
		</ant>
	</target>
</project>

Back to the top