From 07fff9607f09a4bc4f04790b28dcd13d72eaa091 Mon Sep 17 00:00:00 2001
From: Martin Oberhuber < martin.oberhuber@windriver.com>
Date: Tue, 27 Jun 2006 15:49:08 +0000
Subject: [PATCH] Generate build output in "package" directory. Support E-Mail
notification and publishing builds. Add compilelog.txt. Add nightly build
shellscript.
---
.../org.eclipse.rse.build/customTargets.xml | 111 ++++++++++++------
releng/org.eclipse.rse.build/message.in | 6 +
releng/org.eclipse.rse.build/nightly.sh | 41 +++++++
.../org.eclipse.rse.build/template/index.php | 6 +-
4 files changed, 125 insertions(+), 39 deletions(-)
create mode 100644 releng/org.eclipse.rse.build/message.in
create mode 100755 releng/org.eclipse.rse.build/nightly.sh
diff --git a/releng/org.eclipse.rse.build/customTargets.xml b/releng/org.eclipse.rse.build/customTargets.xml
index c4aced91c13..7f914a22ded 100644
--- a/releng/org.eclipse.rse.build/customTargets.xml
+++ b/releng/org.eclipse.rse.build/customTargets.xml
@@ -182,19 +182,31 @@
-
-
+
+
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
@@ -203,19 +215,17 @@
-
-
-
-
+
-
+
+
@@ -228,12 +238,63 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -357,26 +418,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/releng/org.eclipse.rse.build/message.in b/releng/org.eclipse.rse.build/message.in
new file mode 100644
index 00000000000..58bb85093ab
--- /dev/null
+++ b/releng/org.eclipse.rse.build/message.in
@@ -0,0 +1,6 @@
+The build is available at
+
+ http://download.eclipse.org/dsdp/tm/downloads/drops/@buildId@
+
+Cheers,
+the RSE nightly build...
diff --git a/releng/org.eclipse.rse.build/nightly.sh b/releng/org.eclipse.rse.build/nightly.sh
new file mode 100755
index 00000000000..e963e9ec074
--- /dev/null
+++ b/releng/org.eclipse.rse.build/nightly.sh
@@ -0,0 +1,41 @@
+#!/bin/sh
+#nightly build for RSE - to be executed on build.eclipse.org
+#author: martin oberhuber
+
+curdir=`pwd`
+cd `dirname $0`
+mydir=`pwd`
+
+# pathes: see build.rb for reference
+cd "$mydir/../eclipse" ; eclipse=`pwd`
+cd "$mydir/../working" ; working=`pwd`
+cd "$mydir/../publish" ; publishDirectory=`pwd`
+cd "$mydir" ; builder=`pwd`
+
+# Find the base build scripts: genericTargets.xml and build.xml
+baseBuilder="${eclipse}/plugins/org.eclipse.pde.build_3.2.0.v20060603"
+buildDirectory="${working}/build"
+packageDirectory="${working}/package"
+
+tag="HEAD"
+buildType="N"
+timestamp=`date +'%Y%m%d-%H%M'`
+buildId="${buildType}${timestamp}"
+rm -rf "${buildDirectory}"
+
+command="java -cp ${eclipse}/startup.jar org.eclipse.core.launcher.Main "
+command="$command -application org.eclipse.ant.core.antRunner "
+command="$command -buildfile ${baseBuilder}/scripts/build.xml "
+command="$command -DbuildDirectory=${buildDirectory} "
+command="$command -DpackageDirectory=${packageDirectory} "
+command="$command -DpublishDirectory=${publishDirectory} "
+command="$command -Dbuilder=${builder} "
+command="$command -DbaseLocation=${eclipse} "
+command="$command -DbuildType=${buildType} "
+command="$command -DbuildId=${buildId} "
+command="$command -DmapVersionTag=${tag} "
+command="$command -DdoPublish=true "
+#command="$command postBuild "
+
+echo "$command"
+exec $command
diff --git a/releng/org.eclipse.rse.build/template/index.php b/releng/org.eclipse.rse.build/template/index.php
index f20d4b1afa4..6a5b0f64b50 100755
--- a/releng/org.eclipse.rse.build/template/index.php
+++ b/releng/org.eclipse.rse.build/template/index.php
@@ -18,14 +18,14 @@
User Agreement.
To get started, see the build notes.
To view the map file entries for this build, click
- here.
+ here.
+ To view the compile logs for this build, click
+ here.