diff --git a/archive/org.eclipse.wtp.releng/performance/build.xml b/archive/org.eclipse.wtp.releng/performance/build.xml index 8fc848f0a4eab504aec04c0396ddac6a2d486216..9fe7e0770c80cf132bbc71a80ba134c9aa139bbf 100644 --- a/archive/org.eclipse.wtp.releng/performance/build.xml +++ b/archive/org.eclipse.wtp.releng/performance/build.xml @@ -14,16 +14,44 @@ includes="**/*" /> <delete file="label.properties"/> + <condition property="buildproperties.exists"> + <and> + <isset property="buildType"/> + <isset property="date"/> + <isset property="time"/> + <isset property="buildId"/> + </and> + </condition> + <antcall target="create.label.properties"/> + <antcall target="create.label.properties2"/> + <available file="label.properties" property="label.properties.exists"/> + <antcall target="performance"/> + <delete file="label.properties"/> + <delete dir="${basedir}/org.eclipse.wtp.releng"/> + </target> + + <target name="create.label.properties" if="buildproperties.exists"> + <echo file="label.properties" append="true"> + buildType=${buildType} + </echo> + <echo file="label.properties" append="true"> + date=${date} + </echo> + <echo file="label.properties" append="true"> + time=${time} + </echo> + <echo file="label.properties" append="true"> + buildId=${buildId} + </echo> + </target> + + <target name="create.label.properties2" unless="buildproperties.exists"> <java classname="org.eclipse.wtp.releng.tools.performance.Main" failonerror="false"> <arg value="${basedir}"/> <classpath> <pathelement path="${basedir}/org.eclipse.wtp.releng/performance/bin"/> </classpath> </java> - <available file="label.properties" property="label.properties.exists"/> - <antcall target="performance"/> - <delete file="label.properties"/> - <delete dir="${basedir}/org.eclipse.wtp.releng"/> </target> <target name="performance" if="label.properties.exists">