blob: 94011dce8514d99c01564f203e3efe5cebf3b895 [file] [log] [blame]
<?xml version="1.0"?>
<project default="main" basedir=".">
<target name="init">
<delete file="label.properties" />
<ant antfile="build.xml" target="create.label.properties" />
<!-- The tags.properties file contains tags for map files containing 'stable' and 'integration' config -->
<property file="tags.properties"/>
<property file="label.properties"/>
</target>
<target name="checkArgs" unless="stable.target">
<echo message="tags.properties file is required." />
<fail/>
</target>
<target name="main" depends="init,checkArgs">
<!-- Note: for now, overriding calculated qualifier for continuous and nightly builds,
as these builds are not tagged as are integration and stable builds. -->
<ant antfile="build.xml" target="cleanLocal"/>
<!-- Delete all previous continuous builds -->
<ant antfile="build.xml" target="cleanupArtifacts"/>
<echo message="Building runtime..." />
<ant antfile="build.xml" target="main">
<property name="component" value="runtime" />
<property name="cleanBase" value="true" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${stable.maps}" />
<property name="targetConfigTag" value="${stable.target}" />
<property name="componentsTag" value="${stable.components}" />
</ant>
<echo message="Building sdk..." />
<ant antfile="build.xml" target="main">
<property name="component" value="sdk" />
<property name="wipe" value="true" />
<property name="copyRuntime" value="true" />
<property name="mapsCheckoutTag" value="${stable.maps}" />
<property name="targetConfigTag" value="${stable.target}" />
<property name="componentsTag" value="${stable.components}" />
</ant>
<echo message="Building examples..." />
<ant antfile="build.xml" target="main">
<property name="component" value="examples" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${stable.maps}" />
<property name="targetConfigTag" value="${stable.target}" />
<property name="componentsTag" value="${stable.components}" />
</ant>
<echo message="Building examples pde..." />
<ant antfile="build.xml" target="main">
<property name="component" value="examples-pde" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${stable.maps}" />
<property name="targetConfigTag" value="${stable.target}" />
<property name="componentsTag" value="${stable.components}" />
</ant>
<echo message="Building tests..." />
<ant antfile="build.xml" target="main">
<property name="component" value="tests" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${stable.maps}" />
<property name="targetConfigTag" value="${stable.target}" />
<property name="componentsTag" value="${stable.components}" />
</ant>
<echo message="Building sdk experimental..." />
<ant antfile="build.xml" target="main">
<property name="component" value="sdk-experimental" />
<property name="cleanBase" value="true" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${stable.maps}" />
<property name="targetConfigTag" value="${stable.target}" />
<property name="componentsTag" value="${stable.components}" />
</ant>
<echo message="Building sdk experimental tests..." />
<ant antfile="build.xml" target="main">
<property name="component" value="tests-experimental" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${stable.maps}" />
<property name="targetConfigTag" value="${stable.target}" />
<property name="componentsTag" value="${stable.components}" />
</ant>
<ant antfile="build.xml" target="publishLocal"/>
</target>
<target name="nightly" depends="init,checkArgs">
<!-- Note: for now, overriding calculated qualifier for continuous and nightly builds,
as these builds are not tagged as are integration and stable builds. -->
<ant antfile="build.xml" target="cleanLocal"/>
<echo message="Building runtime..." />
<ant antfile="build.xml" target="main">
<property name="component" value="runtime" />
<property name="cleanBase" value="true" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${stable.maps}" />
<property name="targetConfigTag" value="${stable.target}" />
<property name="componentsTag" value="${stable.components}" />
</ant>
<echo message="Building sdk..." />
<ant antfile="build.xml" target="main">
<property name="component" value="sdk" />
<property name="wipe" value="true" />
<property name="copyRuntime" value="true" />
<property name="mapsCheckoutTag" value="${stable.maps}" />
<property name="targetConfigTag" value="${stable.target}" />
<property name="componentsTag" value="${stable.components}" />
</ant>
<echo message="Building examples..." />
<ant antfile="build.xml" target="main">
<property name="component" value="examples" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${stable.maps}" />
<property name="targetConfigTag" value="${stable.target}" />
<property name="componentsTag" value="${stable.components}" />
</ant>
<echo message="Building examples pde..." />
<ant antfile="build.xml" target="main">
<property name="component" value="examples-pde" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${stable.maps}" />
<property name="targetConfigTag" value="${stable.target}" />
<property name="componentsTag" value="${stable.components}" />
</ant>
<echo message="Building tests..." />
<ant antfile="build.xml" target="main">
<property name="component" value="tests" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${stable.maps}" />
<property name="targetConfigTag" value="${stable.target}" />
<property name="componentsTag" value="${stable.components}" />
</ant>
<echo message="Building sdk experimental..." />
<ant antfile="build.xml" target="main">
<property name="component" value="sdk-experimental" />
<property name="cleanBase" value="true" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${stable.maps}" />
<property name="targetConfigTag" value="${stable.target}" />
<property name="componentsTag" value="${stable.components}" />
</ant>
<echo message="Building experimental tests..." />
<ant antfile="build.xml" target="main">
<property name="component" value="tests-experimental" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${stable.maps}" />
<property name="targetConfigTag" value="${stable.target}" />
<property name="componentsTag" value="${stable.components}" />
</ant>
<ant antfile="build.xml" target="publishLocal"/>
<antcall target="publish" />
<ant antfile="deploy.xml" target="deploy.zips" />
<antcall target="statCVS" />
</target>
<target name="integration" depends="init,checkArgs">
<ant antfile="build.xml" target="cleanLocal"/>
<echo message="Building runtime..." />
<ant antfile="build.xml" target="main">
<property name="component" value="runtime" />
<property name="cleanBase" value="true" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${integration.maps}" />
<property name="targetConfigTag" value="${integration.target}" />
<property name="componentsTag" value="${integration.components}" />
</ant>
<echo message="Building sdk..." />
<ant antfile="build.xml" target="main">
<property name="component" value="sdk" />
<property name="wipe" value="true" />
<property name="copyRuntime" value="true" />
<property name="mapsCheckoutTag" value="${integration.maps}" />
<property name="targetConfigTag" value="${integration.target}" />
<property name="componentsTag" value="${integration.components}" />
</ant>
<echo message="Building examples..." />
<ant antfile="build.xml" target="main">
<property name="component" value="examples" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${integration.maps}" />
<property name="targetConfigTag" value="${integration.target}" />
<property name="componentsTag" value="${integration.components}" />
</ant>
<echo message="Building examples pde..." />
<ant antfile="build.xml" target="main">
<property name="component" value="examples-pde" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${integration.maps}" />
<property name="targetConfigTag" value="${integration.target}" />
<property name="componentsTag" value="${integration.components}" />
</ant>
<echo message="Building tests..." />
<ant antfile="build.xml" target="main">
<property name="component" value="tests" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${integration.maps}" />
<property name="targetConfigTag" value="${integration.target}" />
<property name="componentsTag" value="${integration.components}" />
</ant>
<echo message="Building sdk experimental..." />
<ant antfile="build.xml" target="main">
<property name="component" value="sdk-experimental" />
<property name="cleanBase" value="true" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${integration.maps}" />
<property name="targetConfigTag" value="${integration.target}" />
<property name="componentsTag" value="${integration.components}" />
</ant>
<echo message="Building sdk experimental tests..." />
<ant antfile="build.xml" target="main">
<property name="component" value="tests-experimental" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${integration.maps}" />
<property name="targetConfigTag" value="${integration.target}" />
<property name="componentsTag" value="${integration.components}" />
</ant>
<ant antfile="build.xml" target="publishLocal"/>
<antcall target="publish" />
<ant antfile="deploy.xml" target="deploy.zips" />
<ant antfile="deploy.xml" target="deploy.updates.interim" />
</target>
<target name="stable" depends="init,checkArgs">
<ant antfile="build.xml" target="cleanLocal"/>
<!-- don't load label.properties to make this functioning
<property name="buildType" value="S" />
<property name="buildId" value="${stable.maps}" />
-->
<echo message="Building runtime..." />
<ant antfile="build.xml" target="main">
<property name="component" value="runtime" />
<property name="cleanBase" value="true" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${stable.maps}" />
<property name="targetConfigTag" value="${stable.target}" />
<property name="componentsTag" value="${stable.components}" />
</ant>
<echo message="Building sdk..." />
<ant antfile="build.xml" target="main">
<property name="component" value="sdk" />
<property name="wipe" value="true" />
<property name="copyRuntime" value="true" />
<property name="mapsCheckoutTag" value="${stable.maps}" />
<property name="targetConfigTag" value="${stable.target}" />
<property name="componentsTag" value="${stable.components}" />
</ant>
<echo message="Building examples..." />
<ant antfile="build.xml" target="main">
<property name="component" value="examples" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${stable.maps}" />
<property name="targetConfigTag" value="${stable.target}" />
<property name="componentsTag" value="${stable.components}" />
</ant>
<echo message="Building examples pde..." />
<ant antfile="build.xml" target="main">
<property name="component" value="examples-pde" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${stable.maps}" />
<property name="targetConfigTag" value="${stable.target}" />
<property name="componentsTag" value="${stable.components}" />
</ant>
<echo message="Building tests..." />
<ant antfile="build.xml" target="main">
<property name="component" value="tests" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${stable.maps}" />
<property name="targetConfigTag" value="${stable.target}" />
<property name="componentsTag" value="${stable.components}" />
</ant>
<echo message="Building sdk experimental..." />
<ant antfile="build.xml" target="main">
<property name="component" value="sdk-experimental" />
<property name="cleanBase" value="true" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${stable.maps}" />
<property name="targetConfigTag" value="${stable.target}" />
<property name="componentsTag" value="${stable.components}" />
</ant>
<echo message="Building sdk experimental tests..." />
<ant antfile="build.xml" target="main">
<property name="component" value="tests-experimental" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${stable.maps}" />
<property name="targetConfigTag" value="${stable.target}" />
<property name="componentsTag" value="${stable.components}" />
</ant>
<ant antfile="build.xml" target="publishLocal"/>
<antcall target="publish" />
<!-- Removing auto-deployment of stable builds - better do deploy them manually
<ant antfile="deploy.xml" target="deploy.zips" />
<ant antfile="deploy.xml" target="deploy.updates" />
-->
</target>
<target name="maintenance" depends="init,checkArgs">
<!-- Note: for now, overriding calculated qualifier for continuous and nightly builds,
as these builds are not tagged as are integration and stable builds. -->
<ant antfile="build.xml" target="cleanLocal"/>
<!-- Delete all previous continuous builds -->
<ant antfile="build.xml" target="cleanupArtifacts"/>
<echo message="Building runtime..." />
<ant antfile="build.xml" target="main">
<property name="component" value="runtime" />
<property name="cleanBase" value="true" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${maintenance.maps}" />
<property name="targetConfigTag" value="${maintenance.target}" />
<property name="componentsTag" value="${maintenance.components}" />
</ant>
<echo message="Building sdk..." />
<ant antfile="build.xml" target="main">
<property name="component" value="sdk" />
<property name="wipe" value="true" />
<property name="copyRuntime" value="true" />
<property name="mapsCheckoutTag" value="${maintenance.maps}" />
<property name="targetConfigTag" value="${maintenance.target}" />
<property name="componentsTag" value="${maintenance.components}" />
</ant>
<echo message="Building examples..." />
<ant antfile="build.xml" target="main">
<property name="component" value="examples" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${maintenance.maps}" />
<property name="targetConfigTag" value="${maintenance.target}" />
<property name="componentsTag" value="${maintenance.components}" />
</ant>
<echo message="Building examples pde..." />
<ant antfile="build.xml" target="main">
<property name="component" value="examples-pde" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${maintenance.maps}" />
<property name="targetConfigTag" value="${maintenance.target}" />
<property name="componentsTag" value="${maintenance.components}" />
</ant>
<echo message="Building tests..." />
<ant antfile="build.xml" target="main">
<property name="component" value="tests" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${maintenance.maps}" />
<property name="targetConfigTag" value="${maintenance.target}" />
<property name="componentsTag" value="${maintenance.components}" />
</ant>
<echo message="Building sdk experimental..." />
<ant antfile="build.xml" target="main">
<property name="component" value="sdk-experimental" />
<property name="cleanBase" value="true" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${maintenance.maps}" />
<property name="targetConfigTag" value="${maintenance.target}" />
<property name="componentsTag" value="${maintenance.components}" />
</ant>
<echo message="Building sdk experimental tests..." />
<ant antfile="build.xml" target="main">
<property name="component" value="tests-experimental" />
<property name="wipe" value="true" />
<property name="mapsCheckoutTag" value="${maintenance.maps}" />
<property name="targetConfigTag" value="${maintenance.target}" />
<property name="componentsTag" value="${maintenance.components}" />
</ant>
<ant antfile="build.xml" target="publishLocal"/>
<antcall target="publish" />
<ant antfile="deploy.xml" target="deploy.zips" />
</target>
<target name="publish" depends="">
<!-- Fake a component, use sdk -->
<property name="component" value="sdk" />
<property file="build.properties" />
<property file="${buildRoot}/sdk/maps/org.eclipse.gmf.releng.target/build.cfg" />
<property name="publish.xml" value="../../org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/scripts/publish.xml" />
<property name="indexFileName" value="index.php" />
<property name="result" value="${buildRoot}/artifacts/${buildLabel}" />
<ant antfile="${publish.xml}" dir="${basedir}">
<property name="platformIdentifierToken" value="%platform%"/>
<property name="platformSpecificTemplateList"
value="Windows,index.html.template,index.html,Linux,index.html.template,index.html"/>
<property name="dropTokenList" value="%sdk%,%sdk-experimental%,%runtime%,%examples%,%tests%" />
<property name="isBuildTested" value="true" />
</ant>
<!-- Copy the directory.txt file to destination for download page -->
<copy file="${buildRoot}/sdk/directory.txt" todir="${artifacts}/${buildLabel}" />
<replace file="${result}/${indexFileName}">
<!-- Insert url for supported eclipse drop-->
<replacefilter token="@eclipseVersion@" value="${eclipseVersion}" />
<replacefilter token="@eclipseBuildId@" value="${eclipseBuildId}" />
<replacefilter token="@eclipseBaseURL@" value="${eclipseBaseURL}" />
<replacefilter token="@eclipseDownloadPage@" value="${eclipseDownloadPage}" />
<!-- Insert url for supported EMF -->
<replacefilter token="@emfVersion@" value="${emfVersion}" />
<replacefilter token="@emfBuildId@" value="${emfBuildId}" />
<replacefilter token="@emfUpdateSite@" value="${emfUpdateSite}" />
<replacefilter token="@emfDownloadPage@" value="${emfDownloadPage}" />
<replacefilter token="@emfOCLBuildId@" value="${emfOCLBuildId}" />
<replacefilter token="@emfOCLVersion@" value="${emfOCLVersion}" />
<replacefilter token="@emfOCLDownloadPage@" value="${emfOCLDownloadPage}" />
<replacefilter token="@emfOCLUpdateSite@" value="${emfOCLUpdateSite}" />
<replacefilter token="@emfValidationBuildId@" value="${emfValidationBuildId}" />
<replacefilter token="@emfValidationVersion@" value="${emfValidationVersion}" />
<replacefilter token="@emfValidationDownloadPage@" value="${emfValidationDownloadPage}" />
<replacefilter token="@emfValidationUpdateSite@" value="${emfValidationUpdateSite}" />
<replacefilter token="@emfQueryBuildId@" value="${emfQueryBuildId}" />
<replacefilter token="@emfQueryVersion@" value="${emfQueryVersion}" />
<replacefilter token="@emfQueryDownloadPage@" value="${emfQueryDownloadPage}" />
<replacefilter token="@emfQueryUpdateSite@" value="${emfQueryUpdateSite}" />
<replacefilter token="@emfTransactionBuildId@" value="${emfTransactionBuildId}" />
<replacefilter token="@emfTransactionVersion@" value="${emfTransactionVersion}" />
<replacefilter token="@emfTransactionDownloadPage@" value="${emfTransactionDownloadPage}" />
<replacefilter token="@emfTransactionUpdateSite@" value="${emfTransactionUpdateSite}" />
<!-- Insert url for supported GEF -->
<replacefilter token="@gefVersion@" value="${gefVersion}" />
<replacefilter token="@gefUpdateSite@" value="${gefUpdateSite}" />
<replacefilter token="@gefDownloadPage@" value="${gefDownloadPage}" />
</replace>
<!-- Replace the base variables to be nothing for bld-index, and the full reroute url for the main index file. -->
<replace file="${result}/${indexFileName}" token="@base@" value="http://www.eclipse.org/downloads/download.php?file=/modeling/gmf/downloads/drops/${buildLabel}/" />
<!-- Correct the slashes for the compilation logs on Windows -->
<replace file="${result}/testResults.php" token="\" value="/" />
<!-- Copy update jars as well -->
<copy todir="${buildRoot}/artifacts/updates/${buildLabel}/features">
<fileset dir="${buildUpdateSitePath}/features" />
</copy>
<copy todir="${buildRoot}/artifacts/updates/${buildLabel}/plugins">
<fileset dir="${buildUpdateSitePath}/plugins" />
</copy>
</target>
<target name="statCVS" if="statCVShome">
<cvs dest="${checkoutDirectory}/org.eclipse.gmf" command="log" output="${checkoutDirectory}/logfile.log" />
<java jar="${statCVShome}/statcvs.jar" dir="${statCVSpublish}" fork="true" failonerror="true" maxmemory="1024m">
<arg value="${checkoutDirectory}/logfile.log" />
<arg value="${checkoutDirectory}/org.eclipse.gmf" />
</java>
<copy file="${scripts}/css/statcvs.css" todir="${statCVSpublish}" overwrite="true" />
</target>
</project>