blob: 22376ca2cf1220c0b097d41f3556f7c0d440c238 [file] [log] [blame]
<project default="runBuild">
<target name="runBuild">
<dirname file="${ant.file}" property="scripts.build.dir" />
<property name="wtp.builder.home" value="${scripts.build.dir}/../.." />
<antcall target="runEclipseBuild">
<param name="wtp.builder.home" value="${wtp.builder.home}" />
</antcall>
<antcall target="runEclipseBuildStamped">
<param name="wtp.builder.home" value="${wtp.builder.home}" />
</antcall>
</target>
<target name="build" depends="init">
<!--this property required as of Eclipse 3.0 stream builds > 20031126 -->
<property name="buildingOSGi" value="true" />
<!-- this generateFeatureVersionSuffix property causes feature
suffixes to be calcuated based on their
own CVS tag, plus the qualifier of their contained plugins -->
<!--
https://bugs.eclipse.org/bugs/show_bug.cgi?id=138825
false for builds intended for 3.1.2, since can generate underscores
true for builds instended for 3.2
-->
<property name="generateFeatureVersionSuffix" value="true" />
<!-- temporarily hard code to true to get RC2 done ... need to improve whole process so doesn't require two passes -->
<property name="outputUpdateJars" = value="true" />
<!--run the build for the specified component-->
<echo message="basedir: ${basedir}" />
<echo message="component: ${component}" />
<echo message="buildDirectory: ${buildDirectory}" />
<echo message="wtp.builder.home: ${wtp.builder.home}" />
<ant antfile="build.xml" dir="${pde.build.scripts}">
<property name="builder" value="${wtp.builder.home}/components/${component}" />
<property name="wtp.builder.home" value="${wtp.builder.home}" />
<property name="buildBranch" value="${buildBranch}" />
<property name="cvsUser" value="${cvsUser}" />
<property name="cvsProtocol" value="${cvsProtocol}" />
<property name="dependencyTargets" value="${wtp.builder.home}/scripts/dependency/build.xml" />
<property name="local.cache.dir" value="${build.home}/${build.local.repository}" />
<property name="baseLocation" value="${build.home}/${build.current}-${build.distribution}-${buildType}/${base.location}" />
<property name="buildRoot" value="${build.home}/${build.current}-${build.distribution}-${buildType}" />
<property name="testRoot" value="${build.home}/${build.tests}-${build.distribution}-${buildType}" />
<property name="performanceRoot" value="${build.home}/${build.perf.tests}-${buildType}" />
<!-- property name="bootclasspath" value="${java.home}/lib/rt.jar${path.separator}${java.home}/lib/jsse.jar" / -->
</ant>
</target>
<target name="checkBaseBuilder">
<available property="basebuilderLocal" file="${pde.builder.path}" />
</target>
<target name="getBaseBuilder" depends="checkBaseBuilder" unless="basebuilderLocal">
<!-- *** change the repo info -->
<property name="builderCvsRoot" value=":pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse" />
<!-- note: the HEAD version of base builder is not good to use.
in some cases, won't run at all, in the best of cases, will simply
be unstable, as its the development version -->
<property name="eclipse.builder.version" value="r311_vM20050914-1235" />
<mkdir dir="${build.home}/builders/${eclipse.builder.version}" />
<cvs cvsRoot="${builderCvsRoot}" package="org.eclipse.releng.basebuilder" dest="${build.home}/builders/${eclipse.builder.version}" tag="${eclipse.builder.version}" />
</target>
<target name="init">
<condition property="buildBranch" value="R1.5">
<equals arg1="${mapVersionTag}" arg2="HEAD" />
</condition>
<condition property="buildBranch" value="R0.7 Maintenance">
<equals arg1="${mapVersionTag}" arg2="R0_7_maintenance" />
</condition>
<condition property="buildBranch" value="R1.0 Maintenance">
<equals arg1="${mapVersionTag}" arg2="R1_0_maintenance" />
</condition>
<property file="${wtp.builder.home}/build.properties" />
<touch file="${user.home}/.cvspass" />
<ant antfile="${wtp.builder.home}/scripts/build/label.xml" />
<property file="${buildDirectory}/label.properties" />
<!--fetch the HEAD stream of all projects if build type specified as N-->
<condition property="fetchTag" value="HEAD">
<equals arg1="${buildType}" arg2="N" />
</condition>
<condition property="tagMaps">
<equals arg1="${build.trial}" arg2="false" />
</condition>
</target>
<target name="runEclipseBuild" if="buildId">
<java taskname="build-${build.distribution}-${component}" classpath="${pde.builder.path}/startup.jar" fork="true" classname="org.eclipse.core.launcher.Main" failonerror="true">
<jvmarg value="-Dosgi.ws=${basews}" />
<jvmarg value="-Dosgi.os=${baseos}" />
<jvmarg value="-Dosgi.arch=${basearch}" />
<jvmarg value="-Dbasews=${basews}" />
<jvmarg value="-Dbaseos=${baseos}" />
<jvmarg value="-Dbasearch=${basearch}" />
<jvmarg value="-Dbuild.home=${build.home}" />
<jvmarg value="-Dbuild.trial=${build.trial}" />
<jvmarg value="-DbuildType=${buildType}" />
<jvmarg value="-DbuildId=${buildId}" />
<jvmarg value="-DjavacDebugInfo=${javacDebugInfo}" />
<jvmarg value="-DmapVersionTag=${mapVersionTag}" />
<jvmarg value="-DcvsUser=${cvsUser}" />
<jvmarg value="-DcvsProtocol=${cvsProtocol}" />
<jvmarg value="-Dwtp.builder.home=${wtp.builder.home}" />
<jvmarg value="-Dbuild.distribution=${build.distribution}" />
<jvmarg value="-Dcomponent=${component}" />
<arg value="-application" />
<arg value="org.eclipse.ant.core.antRunner" />
<arg value="-buildfile" />
<arg value="${ant.file}" />
<arg value="build" />
</java>
</target>
<target name="runEclipseBuildStamped" unless="buildId">
<java taskname="build-${build.distribution}-${component}" classpath="${pde.builder.path}/startup.jar" fork="true" classname="org.eclipse.core.launcher.Main" failonerror="true">
<jvmarg value="-Dosgi.ws=${basews}" />
<jvmarg value="-Dosgi.os=${baseos}" />
<jvmarg value="-Dosgi.arch=${basearch}" />
<jvmarg value="-Dbasews=${basews}" />
<jvmarg value="-Dbaseos=${baseos}" />
<jvmarg value="-Dbasearch=${basearch}" />
<jvmarg value="-Dbuild.home=${build.home}" />
<jvmarg value="-Dbuild.trial=${build.trial}" />
<jvmarg value="-DbuildType=${buildType}" />
<jvmarg value="-DjavacDebugInfo=${javacDebugInfo}" />
<jvmarg value="-DmapVersionTag=${mapVersionTag}" />
<jvmarg value="-DcvsUser=${cvsUser}" />
<jvmarg value="-DcvsProtocol=${cvsProtocol}" />
<jvmarg value="-Dwtp.builder.home=${wtp.builder.home}" />
<jvmarg value="-Dbuild.distribution=${build.distribution}" />
<jvmarg value="-Dcomponent=${component}" />
<arg value="-application" />
<arg value="org.eclipse.ant.core.antRunner" />
<arg value="-buildfile" />
<arg value="${ant.file}" />
<arg value="build" />
</java>
</target>
</project>