| <project default="run" name="org.eclipse.amp.releng/build.xml - Run an AMP build using the Athena CBI"> |
| <!-- load properties and set timestamp for the build --> |
| |
| <property environment="env" /> |
| <property name="WORKSPACE" location="${env.WORKSPACE}" /> |
| |
| <!-- FIXME if required: Set a valid path to JAVA_HOME, if Eclipse's ${java.home}/../bin/javac cannot be found --> |
| <condition property="JAVA_HOME" value="${java.home}" else="${java.home}/.."> |
| <available file="${java.home}/bin/javac" type="file" /> |
| </condition> |
| |
| <!-- FIXME if required: if not using this type of qualifier, comment next 4 lines --> |
| <tstamp> |
| <format property="buildTimestamp" pattern="yyyyMMddHHmm" /> |
| </tstamp> |
| |
| <!-- 1. To build from sources using information in the ./maps/*.map files, comment these next two properties |
| 2. Or, to build from sources in the workspace, use these properties. You can also use absolute paths if needed. |
| --> |
| <!-- <property name="localSourceCheckoutDir" value="${basedir}/.." /> |
| <property name="relengBuilderDir" value="${basedir}" /> --> |
| |
| <property name="build.properties" value="build.properties" /> |
| <property file="${build.properties}" /> |
| |
| <property name="forceContextQualifier" value="v${buildTimestamp}" /> |
| <property name="fetchTag" value="HEAD" /> |
| |
| <!-- calculate workspaceDir as parent of this folder, the project's .releng folder (relengBuilderDir) --> |
| <import file="findbugs.xml" /> |
| <!-- <import file="pmd.xml" /> --> |
| <dirname file="${relengBuilderDir}" property="workspaceDir" /> |
| |
| <!-- |
| can build in /tmp, eg., in /tmp/build, or in workspace, eg., |
| ${WORKSPACE}/build |
| --> |
| <property name="writableBuildRoot" value="/tmp/build" /> |
| <property name="http_proxy" value="http://proxy.eclipse.org:9898" /> |
| <property name="writableBuildRoot" value="/tmp/build" /> |
| |
| |
| |
| <!-- |
| can be simple path, eg., |
| ${writableBuildRoot}/${buildType}${buildTimestamp} or longer, eg., |
| ${writableBuildRoot}/${topprojectName}/${projectName}/downloads/drops/${version}/${buildType}${buildTimestamp} or |
| ${writableBuildRoot}/${topprojectName}/${projectName}/${subprojectName}/downloads/drops/${version}/${buildType}${buildTimestamp} |
| --> |
| <property name="buildDir" value="${writableBuildRoot}/athena" /> |
| |
| <target name="init"> |
| <delete dir="${buildDir}" failonerror="false" /> |
| </target> |
| |
| <target name="run" depends="init"> |
| <echo message="Workspace: ${WORKSPACE}" /> |
| <echo message="Writable Build Root: ${writableBuildRoot}" /> |
| <mkdir dir="${writableBuildRoot}" /> |
| <!-- invoke a new Eclipse process and launch the build from the common.releng folder --> |
| <!--<property name="relengCommonBuilderDir" value="${workspaceDir}/org.eclipse.dash.common.releng" />--> |
| |
| <condition property="JAVA_HOME" value="${java.home}" else="${java.home}/.."> |
| <available file="${java.home}/bin/javac" type="file" /> |
| </condition> |
| |
| <!-- <ant antfile="${relengCommonBuilderDir}/buildAll.xml" target="runEclipse" dir="${relengCommonBuilderDir}" />--> |
| <ant antfile="${relengCommonBuilderDir}/build.xml" /> |
| |
| </target> |
| |
| </project> |