From 3c9e072ff751146cbcba9ee7b5d830c105e5dd9f Mon Sep 17 00:00:00 2001
From: ndai <ndai>
Date: Sat, 28 Oct 2006 05:43:50 +0000
Subject: [PATCH] What is fixed target for cruise

---
 releng.control/config.xml             | 45 ++++++++++++++++++++
 releng.control/whatisfixed.properties | 27 +++++++++---
 releng.control/whatisfixed.xml        | 59 +++++++++++++++++++++++++++
 3 files changed, 125 insertions(+), 6 deletions(-)
 create mode 100644 releng.control/whatisfixed.xml

diff --git a/releng.control/config.xml b/releng.control/config.xml
index 8bc5e4f80..2488a9db8 100644
--- a/releng.control/config.xml
+++ b/releng.control/config.xml
@@ -474,6 +474,51 @@
 		</publishers>
 	</project>
 
+	<project
+		name="wtp-whatisfixed"
+		buildafterfailed="true">
+
+		<dateformat format="yyyyMMdd-HHmm z" />
+		<listeners>
+			<currentbuildstatuslistener />
+		</listeners>
+		<log
+			dir="${logDir}"
+			encoding="ISO-8859-1" />
+
+		<!-- Time based build only -->
+		<modificationset requiremodification="false">
+		</modificationset>
+
+		<schedule interval="${time.OnRequestOnly}">
+			<ant
+				antscript="${build.home}/releng.control/ant.sh"
+				buildfile="whatisfixed.xml"
+				target="whatisfixed"
+				useQuiet="false"
+				useLogger="false"
+				savelogdir="${logDir}"
+				usedebug="false"
+				antworkingdir="${build.home}/releng.control">
+
+			</ant>
+		</schedule>
+
+
+
+
+		<!-- Publishers are run *after* a build completes -->
+		<publishers>
+			<email
+				mailhost="localhost"
+				returnaddress="${build.buildmaster.email}"
+				skipusers="true"
+				subjectprefix="[wtp-whatisfixed-build]"
+				spamwhilebroken="false"
+				buildresultsurl="${build.result.url}/cruisecontrol/buildresults/wtp-whatisfixed">
+			</email>
+		</publishers>
+	</project>
 
 
 </cruisecontrol>
diff --git a/releng.control/whatisfixed.properties b/releng.control/whatisfixed.properties
index 81c8d8256..7d247ad55 100644
--- a/releng.control/whatisfixed.properties
+++ b/releng.control/whatisfixed.properties
@@ -4,12 +4,11 @@
 whatisfixed.since.date=2006-09-23 05:08:00 GMT
 whatisfixed.fromBuildId=R-1.5.1-200609230508
 
-
 # TO DATE AND BUILD
 # This is calculated at the time of the build. Is not set 
 #
-#whatisfixed.to.date=
-#whatisfixed.toBuildId=
+whatisfixed.toBuildId=R-1.5.2-200610261841
+whatisfixed.to.date=2006-10-26 18:41:00 GMT
 
 # This is not used due to wierd behavior by cvs rlog 
 #whatisfixed.to.branch
@@ -19,9 +18,19 @@ whatisfixed.fromBuildId=R-1.5.1-200609230508
 # - means ignore target
 whatisfixed.targetMilestones=1.5.1 M151,1.5.2 M152
 
-# The list will include bugs with these statuses
-# - means ignore target (valid status - RESOLVED CLOSED NEW..)
-whatisfixed.status=-
+buildBranch=R1.5
+buildType=R
+buildRelease=R1.5
+build.distribution=wtp
+
+whatisfixed.workdir=./tmp-wif
+wtpBuilder=${whatisfixed.workdir}/releng.wtpbuilder/build.xml
+wtp.cvsTag=HEAD
+
+mapCvsRoot=:pserver:anonymous@dev.eclipse.org:/cvsroot/webtools
+whatisfixed.dir=${whatisfixed.workdir}/results/whatisfixed
+
+
 
 # These are the components under the cvs root to
 # search for changes (seperate them by commas, blanks are significant in a name!)
@@ -29,3 +38,9 @@ whatisfixed.modules=wst,jst
 
 
 build.whatIsFixed=true
+build.trial=false
+
+uploadUser=ndai
+uploadPassword=This is not really used since ssh login is assumed (required)
+uploadServer=download1.eclipse.org
+uploadRemoteDirectory=/home/data/users/ndai/downloads/webtools/committers/drops/${buildBranch}/${whatisfixed.toBuildId}
diff --git a/releng.control/whatisfixed.xml b/releng.control/whatisfixed.xml
new file mode 100644
index 000000000..458118b87
--- /dev/null
+++ b/releng.control/whatisfixed.xml
@@ -0,0 +1,59 @@
+<project default="whatisfixed" basedir=".">
+
+	<property file="whatisfixed.properties" />
+
+
+	<target name="whatisfixed" depends="clean">
+
+
+
+		<mkdir dir="${whatisfixed.workdir}" />
+		<antcall target="releng" />
+
+
+		<!-- create what-is-fixed summary files -->
+		<ant antfile="${wtpBuilder}" target="whatisfixed">
+			<property name="wtpbuilder.whatisfixed.properties.file" value="${basedir}/whatisfixed.properties" />
+		</ant>
+
+		<antcall target="sync" />
+
+	</target>
+
+	<target name="releng">
+
+		<available file="${whatisfixed.workdir}/releng/maps/dependencies.properties" property="map.exists" />
+		<available file="${whatisfixed.workdir}/releng.wtpbuilder/scripts/dependency/build.xml" property="releng.exists" />
+		<antcall target="checkout-maps" />
+		<antcall target="getwtpbuilder" />
+	</target>
+
+	<target name="checkout-maps" unless="map.exists">
+		<cvs quiet="true" cvsRoot="${mapCvsRoot}" package="releng/maps/build.cfg" dest="${whatisfixed.workdir}" tag="${wtp.cvsTag}" />
+	</target>
+
+	<target name="getwtpbuilder" unless="releng.exists">
+		<property file="${whatisfixed.workdir}/releng/maps/build.cfg" />
+		<delete dir="${whatisfixed.workdir}/releng.wtpbuilder" failonerror="false" />
+		<echo message="Version tag for releng.wtpbuilder is: ${wtpBuilderVersion}" />
+		<cvs quiet="true" cvsRoot="${mapCvsRoot}" package="releng.wtpbuilder" dest="${whatisfixed.workdir}" tag="${wtpBuilderVersion}" />
+	</target>
+
+	<target name="clean" >
+		<!-- delete dir="${whatisfixed.workdir}" / -->
+	</target>
+
+	<target name="sync" >
+
+
+
+		<echo message="RSYNC to: ${uploadRemoteDirectory}" />
+
+		<exec executable="rsync">
+			<arg line="-e ssh -Cavz ${whatisfixed.dir} ${uploadUser}@${uploadServer}:${uploadRemoteDirectory}/whatisfixed" />
+		</exec>
+	</target>
+	
+
+
+</project>
-- 
GitLab