blob: c080ee1f8c0bd0964816e78e09e47ae88b3f0de4 [file] [log] [blame]
<project default="main" basedir=".">
<target name="main">
<cvs
cvsRoot=":pserver:anonymous@dev.eclipse.org:/cvsroot/webtools"
package="org.eclipse.wtp.releng"
dest="${basedir}"
command="export"
tag="HEAD"
/>
<mkdir dir="${basedir}/org.eclipse.wtp.releng/performance/bin"/>
<javac
srcdir="${basedir}/org.eclipse.wtp.releng/performance/src"
destdir="${basedir}/org.eclipse.wtp.releng/performance/bin"
includes="**/*"
/>
<antcall target="create.label.properties"/>
<available file="label.properties" property="label.properties.exists"/>
<antcall target="performance"/>
</target>
<target name="create.label.properties">
<property name="label.ceiling" value=""/>
<java classname="org.eclipse.wtp.releng.tools.performance.Main" failonerror="false" fork="true">
<arg value="${basedir}"/>
<classpath>
<pathelement path="${basedir}/org.eclipse.wtp.releng/performance/bin"/>
</classpath>
<sysproperty key="label.ceiling" value="${label.ceiling}"/>
</java>
</target>
<target name="performance" if="label.properties.exists">
<property file="label.properties"/>
<condition property="baseos" value="linux">
<os family="unix"/>
</condition>
<condition property="basews" value="gtk">
<os family="unix"/>
</condition>
<condition property="basearch" value="x86">
<os family="unix"/>
</condition>
<condition property="baseos" value="win32">
<os family="windows"/>
</condition>
<condition property="basews" value="win32">
<os family="windows"/>
</condition>
<condition property="basearch" value="x86">
<os family="windows"/>
</condition>
<mkdir dir="${basedir}/org.eclipse.wtp.releng/results/xml"/>
<copy file="${basedir}/org.eclipse.wtp.releng/testScripts/JUNIT.XSL" tofile="${basedir}/org.eclipse.wtp.releng/results/xml/JUNIT.XSL" overwrite="true"/>
<ant antfile="${basedir}/org.eclipse.wtp.releng/cruise.xml" dir="${basedir}/org.eclipse.wtp.releng" target="performance">
<property name="build.home" value="${basedir}"/>
<property name="buildType" value="${buildType}"/>
<property name="date" value="${date}"/>
<property name="time" value="${time}"/>
<property name="buildId" value="${buildId}"/>
<property name="baseos" value="${baseos}"/>
<property name="basews" value="${basews}"/>
<property name="basearch" value="${basearch}"/>
</ant>
<property file="${basedir}/org.eclipse.wtp.releng/buildAll.properties"/>
<mkdir dir="${basedir}/publish/${buildType}-${buildId}-${date}${time}"/>
<copy todir="${basedir}/publish/${buildType}-${buildId}-${date}${time}" failonerror="false">
<fileset dir="${basedir}/org.eclipse.wtp.releng" includes="results/**/*"/>
</copy>
<copy todir="${basedir}/publish" failonerror="false">
<fileset dir="${basedir}/${build.current}-${buildType}/${build.directory}" includes="${buildType}-${buildId}-${date}${time}/**/*" excludes="**/*.zip"/>
</copy>
</target>
<target name="clean">
<property file="label.properties"/>
<property file="${basedir}/org.eclipse.wtp.releng/buildAll.properties"/>
<delete dir="${basedir}/${build.current}-${buildType}"/>
<delete dir="${basedir}/${build.perf.tests}-${buildType}"/>
<delete file="label.properties"/>
<delete dir="${basedir}/org.eclipse.wtp.releng"/>
</target>
</project>