<!-- | |
Copyright (c) 2010 BSI Business Systems Integration AG. | |
All rights reserved. This program and the accompanying materials | |
are made available under the terms of the Eclipse Public License v1.0 | |
which accompanies this distribution, and is available at | |
http://www.eclipse.org/legal/epl-v10.html | |
Contributors: | |
BSI Business Systems Integration AG - initial API and implementation | |
--> | |
<project name="org.eclipse.scout.build.nightly" default="build"> | |
<property environment="env" /> | |
<property file="build.properties" /> | |
<tstamp> | |
<format property="buildTimestamp" pattern="yyyyMMdd-hhmm" /> | |
<format property="featureTimestamp" pattern="yyyyMMddhhmm" /> | |
</tstamp> | |
<!-- condition properties --> | |
<condition property="major" value="${versionMajor}"> | |
<isset property="versionMajor" /> | |
</condition> | |
<property name="major" value="" /> | |
<condition property="minor" value=".${versionMinor}"> | |
<and> | |
<isset property="versionMajor" /> | |
<isset property="versionMinor" /> | |
</and> | |
</condition> | |
<property name="minor" value="" /> | |
<condition property="micro" value=".${versionMicro}"> | |
<and> | |
<isset property="versionMinor" /> | |
<isset property="versionMicro" /> | |
</and> | |
</condition> | |
<property name="micro" value="" /> | |
<property name="scoutVersion" value="${major}${minor}${micro}" /> | |
<condition property="conditionSkipClean"> | |
<istrue value="${skipClean}" /> | |
</condition> | |
<condition property="conditionCheckStaged"> | |
<and> | |
<available file="${scoutDownloadLocation}/stagingArea/doStage" /> | |
<isfalse value="${skipUpload}" /> | |
<isfalse value="${testBuild}" /> | |
</and> | |
</condition> | |
<target name="build"> | |
<antcall target="precheck" /> | |
<antcall target="clean" /> | |
<available file="${relengRootDir}/working/eclipse" property="skipInstallEclipse" /> | |
<antcall target="setupEclipse" /> | |
<ant antfile="${buildFileDir}/step010_downloadRepository.xml" target="build" /> | |
<ant antfile="${buildFileDir}/step020_buildFeatures.xml" target="build" /> | |
<ant antfile="${buildFileDir}/step030_archiveAll.xml" target="build" /> | |
<ant antfile="${buildFileDir}/step040_markIncubation.xml" target="build" /> | |
<ant antfile="${buildFileDir}/step050_pack200Normalize.xml" target="build" /> | |
<ant antfile="${buildFileDir}/step060_sign.xml" target="build" /> | |
<ant antfile="${buildFileDir}/step100_zipUnpack.xml" target="build" /> | |
<ant antfile="${buildFileDir}/step110_zipCreate.xml" target="build" /> | |
<ant antfile="${buildFileDir}/step200_p2Pack200.xml" target="build" /> | |
<ant antfile="${buildFileDir}/step210_p2mergeRepository.xml" target="build" /> | |
<ant antfile="${buildFileDir}/step220_p2metadata.xml" target="build" /> | |
<ant antfile="${buildFileDir}/step230_p2categorize.xml" target="build" /> | |
<ant antfile="${buildFileDir}/upload.xml" target="build" /> | |
</target> | |
<target name="clean" unless="conditionSkipClean"> | |
<echo message="clean working dir" /> | |
<delete dir="${relengRootDir}/working" /> | |
</target> | |
<target name="precheck" depends="checkStaged"> | |
</target> | |
<target name="checkStaged" if="conditionCheckStaged"> | |
<fail message="already staged. Ensure the staged build is applied to the repository!" /> | |
</target> | |
<target name="setupEclipse" unless="skipInstallEclipse"> | |
<mkdir dir="${relengRootDir}/working" /> | |
<ant antfile="${buildFileDir}/setupEclipse.xml" target="setupEclipse" /> | |
</target> | |
</project> |