From 9a155a7dded4b5f4fa3936fcbc6989118671a29b Mon Sep 17 00:00:00 2001
From: jeffliu <jeffliu>
Date: Mon, 16 May 2005 04:24:24 +0000
Subject: [PATCH] [93609] Performance: Need a way to verify that WTP plug-ins
 do not regress Eclipse platform performance

---
 .../performance/build.xml                     | 36 ++++++++++++++++---
 1 file changed, 32 insertions(+), 4 deletions(-)

diff --git a/archive/org.eclipse.wtp.releng/performance/build.xml b/archive/org.eclipse.wtp.releng/performance/build.xml
index 8fc848f0a..9fe7e0770 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">
-- 
GitLab