From 60f093eb40ab15072191b5d0212b422062a3c1c7 Mon Sep 17 00:00:00 2001 From: Martin Oberhuber < martin.oberhuber@windriver.com> Date: Tue, 14 Dec 2010 11:59:43 +0000 Subject: [PATCH] [releng] Get rid of legacy bootstrappers --- releng/org.eclipse.rse.build/bootstrap.sh | 242 ---------------------- releng/org.eclipse.rse.build/build.pl | 125 ----------- releng/org.eclipse.rse.build/build.rb | 105 ---------- 3 files changed, 472 deletions(-) delete mode 100644 releng/org.eclipse.rse.build/bootstrap.sh delete mode 100644 releng/org.eclipse.rse.build/build.pl delete mode 100644 releng/org.eclipse.rse.build/build.rb diff --git a/releng/org.eclipse.rse.build/bootstrap.sh b/releng/org.eclipse.rse.build/bootstrap.sh deleted file mode 100644 index 8847fac7e0f..00000000000 --- a/releng/org.eclipse.rse.build/bootstrap.sh +++ /dev/null @@ -1,242 +0,0 @@ -#!/bin/sh -#******************************************************************************* -# Copyright (c) 2005, 2009 IBM Corporation and others. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# IBM Corporation - initial API and implementation -# Martin Oberhuber (Wind River) - Adapt for TM / RSE -#******************************************************************************* -# User specific environment and startup programs -umask 002 - -BASE_PATH=.:/bin:/usr/bin:/usr/bin/X11:/usr/local/bin:/usr/bin:/usr/X11R6/bin -LD_LIBRARY_PATH=. -BASH_ENV=$HOME/.bashrc -USERNAME=`whoami` -xhost +$HOSTNAME -DISPLAY=:0.0 -CVS_RSH=ssh -ulimit -c unlimited -export CVS_RSH USERNAME BASH_ENV LD_LIBRARY_PATH DISPLAY - -proc=$$ - -curdir=`pwd` -cd `dirname $0` -mydir=`pwd` - -#notification list -recipients= - -#sets skip.performance.tests Ant property -skipPerf="" - -#sets skip.tests Ant property -skipTest="" - -#sets sign Ant property -sign="" - -tagMaps="" - -#sets fetchTag="HEAD" for nightly builds if required -tag="" - -#Basebuilder for Eclipse 3.2.1 maintenance -#buildProjectTags=v20060529 -buildProjectTags=r321_v20060830 - -#updateSite property setting -updateSite="" - -#flag indicating whether or not mail should be sent to indicate build has started -mail="" - -#flag used to build based on changes in map files -compareMaps="" - -#buildId - build name -buildId="" - -#buildLabel - name parsed in php scripts -- -buildLabel="" - -# tag for build contribution project containing .map files -mapVersionTag=HEAD - -# directory in which to export builder projects -#builderDir=/builds/eclipsebuilder -builderDir=$mydir/../working/build - -# buildtype determines whether map file tags are used as entered or are replaced with HEAD -buildType=N - -# directory where to copy build -#postingDirectory=/builds/transfer/files/master/downloads/drops -postingDirectory=$mydir/../publish - - -# flag to indicate if test build -testBuild="" - -# path to javadoc executable -javadoc="" - -# value used in buildLabel and for text replacement in index.php template file -builddate=`date +%Y%m%d` -buildtime=`date +%H%M` -timestamp=$builddate$buildtime - - -# process command line arguments -usage="usage: $0 [-notify emailaddresses][-test][-buildDirectory directory][-buildId name][-buildLabel directory name][-tagMapFiles][-mapVersionTag tag][-builderTag tag][-bootclasspath path][-compareMaps][-skipPerf] [-skipTest][-updateSite site][-sign] M|N|I|S|R" - -if [ $# -lt 1 ] -then - echo >&2 "$usage" - exit 1 -fi - -while [ $# -gt 0 ] -do - case "$1" in - -buildId) buildId="$2"; shift;; - -buildLabel) buildLabel="$2"; shift;; - -mapVersionTag) mapVersionTag="$2"; shift;; - -tagMapFiles) tagMaps="-DtagMaps=true";; - -skipPerf) skipPerf="-Dskip.performance.tests=true";; - -skipTest) skipTest="-Dskip.tests=true";; - -buildDirectory) builderDir="$2"; shift;; - -notify) recipients="$2"; shift;; - -test) postingDirectory="/builds/transfer/files/bogus/downloads/drops";testBuild="-Dtest=true";; - -builderTag) buildProjectTags="$2"; shift;; - -compareMaps) compareMaps="-DcompareMaps=true";; - -updateSite) updateSite="-DupdateSite=$2";shift;; - -sign) sign="-Dsign=true";; - -*) - echo >&2 $usage - exit 1;; - *) break;; # terminate while loop - esac - shift -done - -# After the above the build type is left in $1. -buildType=$1 - -# Set default buildId and buildLabel if none explicitly set -if [ "$buildId" = "" ] -then - buildId=$buildType$builddate-$buildtime -fi - -if [ "$buildLabel" = "" ] -then - buildLabel=$buildId -fi - -#Set the tag to HEAD for Nightly builds -if [ "$buildType" = "N" ] -then - tag="-DfetchTag=HEAD" - versionQualifier="-DforceContextQualifier=$buildId" -fi - -# tag for eclipseInternalBuildTools on ottcvs1 -internalToolsTag=$buildProjectTags - -# tag for exporting org.eclipse.releng.basebuilder -baseBuilderTag=$buildProjectTags - -# tag for exporting the custom builder -customBuilderTag=$buildProjectTags - -if [ -e $builderDir ] -then - builderDir=$builderDir$timestamp -fi - -# directory where features and plugins will be compiled -buildDirectory=$builderDir/src - -mkdir -p $builderDir -cd $builderDir - -#check out org.eclipse.releng.basebuilder -cvs -d :pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse co -r $baseBuilderTag org.eclipse.releng.basebuilder - -#check out org.eclipse.rse.build -cvs -d :pserver:anonymous@dev.eclipse.org:/cvsroot/dsdp co -r $customBuilderTag org.eclipse.tm.rse/releng/org.eclipse.rse.build -if [ "$tagMaps" == "-DtagMaps=true" ]; then - cvs -d moberhuber@dev.eclipse.org:/cvsroot/dsdp rtag -r $customBuilderTag v$buildId org.eclipse.tm.rse/releng/org.eclipse.rse.build -fi - -if [ "$HOSTNAME" == "utils" ] -then - #Running on build.eclipse.org - java15_home=/shared/dsdp/tm/jdk-1.5 - #java14_home=/shared/webtools/apps/IBMJava2-ppc64-142 - java14_home=/shared/dsdp/tm/jdk-1.4 - javadoc="-Djavadoc15=$java15_home/bin/javadoc" - PATH=$java15_home/jre/bin:$PATH;export PATH -elif [ "$HOSTNAME" == "parser.wrs.com" ] -then - #Running on parser - java15_home=/opt/jdk1.5.0_06 - java14_home=/opt/j2sdk1.4.2_12 - javadoc="-Djavadoc15=$java15_home/bin/javadoc" - PATH=$java15_home/jre/bin:$PATH;export PATH -fi - -mkdir -p $postingDirectory/$buildLabel -chmod -R 755 $builderDir - -#default value of the bootclasspath attribute used in ant javac calls. -bootclasspath="$java14_home/jre/lib/rt.jar:$java14_home/jre/lib/jsse.jar" -bootclasspath_15="$java15_home/jre/lib/rt.jar" - -cd $builderDir/org.eclipse.rse.build - -echo buildId=$buildId >> monitor.properties -echo timestamp=$timestamp >> monitor.properties -echo buildLabel=$buildLabel >> monitor.properties -echo recipients=$recipients >> monitor.properties -echo log=$postingDirectory/$buildLabel/index.php >> monitor.properties - -#the base command used to run AntRunner headless -antRunner="`which java` -Xmx500m -jar ../org.eclipse.releng.basebuilder/plugins/org.eclipse.equinox.launcher.jar -Dosgi.os=linux -Dosgi.ws=gtk -Dosgi.arch=ppc -application org.eclipse.ant.core.antRunner" - -#clean drop directories -# $antRunner -buildfile eclipse/helper.xml cleanSites - -echo recipients=$recipients -echo postingDirectory=$postingDirectory -echo builderTag=$buildProjectTags -echo buildDirectory=$buildDirectory -echo bootclasspath=$bootclasspath -echo bootclasspath_15=$bootclasspath_15 - -#full command with args -buildCommand="$antRunner -q -buildfile buildAll.xml $mail $testBuild $compareMaps -DmapVersionTag=$mapVersionTag -DpostingDirectory=$postingDirectory -Dbootclasspath=$bootclasspath -DbuildType=$buildType -D$buildType=true -DbuildId=$buildId -Dbuildid=$buildId -DbuildLabel=$buildLabel -Dtimestamp=$timestamp -DmapCvsRoot=:ext:sdimitro@dev.eclipse.org:/cvsroot/eclipse $skipPerf $skipTest $tagMaps -DJ2SE-1.5=$bootclasspath_15 -DJ2SE-1.4=$bootclasspath -DCDC-1.0/Foundation-1.0=$bootclasspath_foundation -DlogExtension=.xml $javadoc $updateSite $sign -DgenerateFeatureVersionSuffix=true -Djava15-home=$builderDir/jdk/linuxppc/ibm-java2-ppc-50/jre -listener org.eclipse.releng.build.listeners.EclipseBuildListener" - -#capture command used to run the build -echo $buildCommand>command.txt - -#run the build -$buildCommand -retCode=$? - -if [ $retCode != 0 ] -then - echo "Build failed (error code $retCode)." - exit -1 -fi - -#clean up -rm -rf $builderDir - - diff --git a/releng/org.eclipse.rse.build/build.pl b/releng/org.eclipse.rse.build/build.pl deleted file mode 100644 index 55d79ed156a..00000000000 --- a/releng/org.eclipse.rse.build/build.pl +++ /dev/null @@ -1,125 +0,0 @@ -#!/usr/bin/perl -#******************************************************************************* -# Copyright (c) 2006, 2009 IBM Corporation and others. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# David Dykstal (IBM) - initial API and implementation -# Martin Oberhuber (Wind River) - ongoing maintenance -#******************************************************************************* - -# Build script for Remote System Explorer -# Authors: Dave Dykstal, Kushal Munir -# java and cvs have to be in the path - -use warnings; -use File::Spec; - -sub ask($$) { - my ($question, $default, $message, $ans); - ($question, $default) = @_; - $message = "${question} (default is ${default}): "; - print STDERR $message; - $ans = ; - chomp $ans; - $ans = $ans ? $ans : $default; - return $ans; -} - -sub makeAbsolute($) { - my $path = File::Spec->canonpath($_[0]); - if (!File::Spec->file_name_is_absolute($path)) { - $current = `pwd`; - chomp($current); - $path = File::Spec->catdir($current, $path); - $path = File::Spec->canonpath($path); - } - return $path; -} - -# $eclipse is the location of the basic PDE and plugins to compile against -# This should include the org.eclipse.pde.build project -$eclipse = "../eclipse"; - -# $basebuilder" is the location of the Eclipse Releng basebuilder -# This can also be set to ${eclipse} -$basebuilder = "../org.eclipse.releng.basebuilder"; - -# $builder is the location of the custom build scripts customTargets.xml and build.properties -# (i.e. the contents of org.eclipse.rse.build) -$builder = "."; - -# $working is where the build is actually done, does not need to exist -$working = "../working"; - -# make these absolute paths -$eclipse = makeAbsolute($eclipse); -$basebuilder = makeAbsolute($basebuilder); -$builder = makeAbsolute($builder); -$working = makeAbsolute($working); -$plugins = File::Spec->catdir($basebuilder, "plugins"); -$pdeBuildGlob = File::Spec->catdir($plugins, "org.eclipse.pde.build*"); - -# Find the base build scripts: genericTargets.xml and build.xml -@candidates = glob($pdeBuildGlob); -$n = @candidates; -if ($n == 0) { - die("PDE Build was not found."); -} -if ($n > 1) { - die("Too many versions of PDE Build were found."); -} -$pdeBuild = $candidates[0]; - -$buildDirectory = "$working/build"; -$packageDirectory = "$working/package"; -$publishDirectory = "$working/publish"; - -$tag = ask("Enter tag to fetch from CVS", "HEAD"); -$buildType = ask("Enter build type (P=Personal, N=Nightly, I=Integration, S=Stable, J/M=Maintenance, K/L=Legacy)", "P"); -($sec, $minute, $hour, $mday, $mon, $year) = localtime(); -$mydstamp = sprintf("%4.4d%2.2d%2.2d", $year + 1900, ($mon + 1), $mday); -$mytstamp = sprintf("%2.2d%2.2d", $hour, $minute, $sec); -$timeStamp = "${mydstamp}-${mytstamp}"; -$buildId = $buildType . $timeStamp; -$buildId = ask("Enter the build id", $buildType . $timeStamp); - -# default value of the bootclasspath attribute used in ant javac calls. -# these pathes are valid on build.eclipse.org -$bootclasspath = "/shared/dsdp/JDKs/win32/j2sdk1.4.2_19/jre/lib/rt.jar:/shared/dsdp/JDKs/win32/j2sdk1.4.2_19/jre/lib/jsse.jar"; -$bootclasspath_15 = "/shared/common/jdk-1.5.0_16/jre/lib/rt.jar"; -#$bootclasspath_16 = "$builderDir/jdk/win32_16/jdk6/jre/lib/rt.jar"; -#$bootclasspath_foundation = "/shared/common/Java_ME_platform_SDK_3.0_EA/runtimes/cdc-hi/lib/rt.jar"; -$bootclasspath_foundation11 = "/shared/dsdp/JDKs/win32/j9_cdc11/lib/jclFoundation11/classes.zip"; - -$incantation = "java -cp ${basebuilder}/plugins/org.eclipse.equinox.launcher.jar org.eclipse.core.launcher.Main "; -$incantation .= "-application org.eclipse.ant.core.antRunner "; -$incantation .= "-buildfile ${pdeBuild}/scripts/build.xml "; -$incantation .= "-DbuildDirectory=${buildDirectory} "; -$incantation .= "-DpackageDirectory=${packageDirectory} "; -$incantation .= "-DpublishDirectory=${publishDirectory} "; -$incantation .= "-Dbuilder=${builder} "; -$incantation .= "-DbaseLocation=${eclipse} "; -$incantation .= "-DbuildType=${buildType} "; -$incantation .= "-DbuildId=${buildId} "; -$incantation .= "-DmapVersionTag=${tag} "; -$incantation .= "-Dmydstamp=${mydstamp} "; -$incantation .= "-Dmytstamp=${mytstamp} "; -if ($buildType =~ "N") { - $incantation .= "-DforceContextQualifier=${buildId} "; - $incantation .= "-DfetchTag=HEAD "; -} -$incantation .= "-DdoPublish=true "; -$incantation .= "-Dbootclasspath=${bootclasspath} "; -$incantation .= "-DJ2SE-1.4=${bootclasspath} "; -$incantation .= "-DJ2SE-1.5=${bootclasspath_15} "; -$incantation .= "-DCDC-1.1/Foundation-1.1=${bootclasspath_foundation11} "; -#$incantation .= "postBuild "; - - -print("${incantation}\n"); - -system($incantation); \ No newline at end of file diff --git a/releng/org.eclipse.rse.build/build.rb b/releng/org.eclipse.rse.build/build.rb deleted file mode 100644 index a5d1d0e07d6..00000000000 --- a/releng/org.eclipse.rse.build/build.rb +++ /dev/null @@ -1,105 +0,0 @@ -#!/usr/bin/ruby -#******************************************************************************* -# Copyright (c) 2006, 2009 IBM Corporation and others. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# David Dykstal (IBM) - initial API and implementation -# Martin Oberhuber (Wind River) - ongoing maintenance -#******************************************************************************* - -# Build script for Remote System Explorer -# Author: Dave Dykstal, Kushal Munir -# Prerequisites: -# written in ruby -# java and cvs have to be in the path - -require "ftools" - -def ask(question, default) - message = "#{question} (default is #{default}): " - STDERR.print message - answer = readline().strip - answer = answer.empty? ? default : answer - return answer -end - -# "eclipse" is the location of the basic PDE and plugins to compile against -# This should include the org.eclipse.pde.build project -eclipse = "../eclipse" - -# "basebuilder" is the location of the Eclipse Releng basebuilder -# This can be set to #{eclipse} -basebuilder = "../org.eclipse.releng.basebuilder" - -# "builder" is the location of the custom build scripts customTargets.xml and build.properties -# (i.e. the contents of org.eclipse.rse.build) -builder = "." - -# "working" is where the build is actually done, does not need to exist -working = "../working" - -# make these absolute paths -eclipse = File.expand_path(eclipse) -basebuilder = File.expand_path(basebuilder) -builder = File.expand_path(builder) -working = File.expand_path(working) - -# Find the base build scripts: genericTargets.xml and build.xml -candidates = Dir["#{basebuilder}/plugins/org.eclipse.pde.build*"] -if (candidates.size == 0) then - raise("PDE Build was not found.") -end -if (candidates.size > 1) then - raise("Too many versions of PDE Build were found.") -end -pdeBuild = candidates[0] - -buildDirectory = "#{working}/build" -packageDirectory = "#{working}/package" -publishDirectory = "#{working}/publish" - -tag = ask("Enter tag to fetch from CVS", "HEAD") -buildType = ask("Enter build type (P=Personal, N=Nightly, I=Integration, S=Stable, J/M=Maintenance, K/L=Legacy)", "P") -mydstamp = Time.now.strftime("%Y%m%d") -mytstamp = Time.now.strftime("%H%M") -buildId = ask("Enter the build id", buildType + mydstamp + "-" + mydstamp) - -# default value of the bootclasspath attribute used in ant javac calls. -# these pathes are valid on build.eclipse.org -bootclasspath = "/shared/dsdp/JDKs/win32/j2sdk1.4.2_19/jre/lib/rt.jar:/shared/dsdp/JDKs/win32/j2sdk1.4.2_19/jre/lib/jsse.jar" -bootclasspath_15 = "/shared/common/jdk-1.5.0_16/jre/lib/rt.jar" -#bootclasspath_16 = "$builderDir/jdk/win32_16/jdk6/jre/lib/rt.jar" -#bootclasspath_foundation = "/shared/common/Java_ME_platform_SDK_3.0_EA/runtimes/cdc-hi/lib/rt.jar" -bootclasspath_foundation11 = "/shared/dsdp/JDKs/win32/j9_cdc11/lib/jclFoundation11/classes.zip" - -command = "java -cp #{basebuilder}/plugins/org.eclipse.equinox.launcher.jar org.eclipse.core.launcher.Main " -command += "-application org.eclipse.ant.core.antRunner " -command += "-buildfile #{pdeBuild}/scripts/build.xml " -command += "-DbuildDirectory=#{buildDirectory} " -command += "-DpackageDirectory=#{packageDirectory} " -command += "-DpublishDirectory=#{publishDirectory} " -command += "-Dbuilder=#{builder} " -command += "-DbaseLocation=#{eclipse} " -command += "-DbuildType=#{buildType} " -command += "-DbuildId=#{buildId} " -command += "-DmapVersionTag=#{tag} " -command += "-Dmydstamp=#{mydstamp} " -command += "-Dmytstamp=#{mytstamp} " -if ("#{buildType}" == "N") then - command += "-DforceContextQualifier=#{buildId} " - command += "-DfetchTag=HEAD " -end -command += "-DdoPublish=true " -command += "-Dbootclasspath=#{bootclasspath} " -command += "-DJ2SE-1.4=#{bootclasspath} " -command += "-DJ2SE-1.5=#{bootclasspath_15} " -command += "-DCDC-1.1/Foundation-1.1=#{bootclasspath_foundation11} " -#command += "postBuild " - -puts(command) - -system(command) \ No newline at end of file