blob: ac92b31440989edbf06544ffd12f55a6c4645451 [file] [log] [blame]
<!-- A sample build file for use with Hudson. Note that forceContextQualifier
is being set, which overrides tag/branch values found in *.map files
-->
<project default="run">
<target name="run">
<property environment="env" />
<tstamp>
<format property="buildTimestamp" pattern="yyyyMMddHHmm" />
</tstamp>
<condition property="forceContextQualifier" value="v${buildTimestamp}">
<not>
<isset property="forceContextQualifier" />
</not>
</condition>
<!-- set properties from hudson parameters, useful with ant build -->
<condition property="isInHudson" value="true">
<or>
<contains string="${user.dir}" substring="hudson" />
<contains string="${user.name}" substring="hudson" />
<contains string="${user.home}" substring="hudson" />
</or>
</condition>
<!-- Hudson default path if WORKSPACE not set -->
<dirname property="user.dir.parent" file="${user.dir}" />
<condition property="WORKSPACE" value="${user.dir.parent}">
<and>
<istrue value="${isInHudson}" />
<not>
<isset property="WORKSPACE" />
</not>
</and>
</condition>
<!-- Local default path if WORKSPACE not set -->
<condition property="WORKSPACE" value="${java.io.tmpdir}">
<and>
<isfalse value="${isInHudson}" />
<not>
<isset property="WORKSPACE" />
</not>
</and>
</condition>
<ant antfile="${localSourceCheckoutDir}/org.eclipse.jwt/releng/cbi-jwt-builder/bootstrap.xml" target="init">
<property name="basebuilderTag" value="R36_RC4" />
<property name="commonrelengTag" value="HEAD" />
<property name="ANTCONTRIB_VERSION" value="1.0b2" />
<property name="ANT4ECLIPSE_VERSION" value="1.0.0.M3" />
<property name="build.properties" value="build.properties" />
</ant>
<!-- 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="yyyyMMdd-HHmm" />
</tstamp>
<property name="forceContextQualifier" value="v${buildTimestamp}" />
<property name="build.properties" value="build.properties" />
<property file="${build.properties}" />
<ant antfile="${relengCommonBuilderDir}/build.xml" />
</target>
</project>