1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-14 12:35:22 +02:00
cdt/releng/org.eclipse.rse.build/nightly.sh

105 lines
3.7 KiB
Bash
Raw Normal View History

#!/bin/sh
2006-09-20 11:53:43 +00:00
#*******************************************************************************
2010-05-22 01:03:36 +00:00
# Copyright (c) 2006, 2010 Wind River Systems, Inc.
2006-09-20 11:53:43 +00:00
# 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:
# Martin Oberhuber - initial API and implementation
#*******************************************************************************
#nightly build for RSE - to be executed on build.eclipse.org
#
2006-10-31 15:46:15 +00:00
# Usage:
# nightly.sh [mapVersionTag] [buildType] [buildId]
# Examples:
# nightly.sh HEAD I
# nightly.sh HEAD S 1.0RC3
#
# Prerequisites:
# - Eclipse 3.2 installed or linked from ../eclipse
# - org.eclipse.releng.basebuilder checked out to ../org.eclipse.releng.basebuilder
#
#author: martin oberhuber
curdir=`pwd`
cd `dirname $0`
mydir=`pwd`
# pathes: see build.rb for reference
cd "$mydir/../eclipse" ; eclipse=`pwd`
cd "$mydir/../org.eclipse.releng.basebuilder" ; basebuilder=`pwd`
cd "$mydir/../working" ; working=`pwd`
cd "$mydir/../publish" ; publishDirectory=`pwd`
cd "$mydir" ; builder=`pwd`
2010-03-15 20:28:45 +00:00
# SPECIAL 3.2m6: Build with target platform 3.5m6 rather than basebuilder
2010-03-16 00:23:02 +00:00
# basebuilder=${eclipse}
2010-03-15 20:28:45 +00:00
# Find the base build scripts: genericTargets.xml and build.xml
cd "${basebuilder}/plugins"
if [ -f org.eclipse.equinox.launcher.jar ]; then
launcher=org.eclipse.equinox.launcher.jar
else
2010-03-16 00:02:44 +00:00
launcher=`ls org.eclipse.equinox.launcher_*.jar | sort | tail -1`
fi
pdeBuild=`ls -d org.eclipse.pde.build* | sort | tail -1`
cd "${builder}"
pdeBuild="${basebuilder}/plugins/${pdeBuild}"
buildDirectory="${working}/build"
packageDirectory="${working}/package"
tag="HEAD"
2006-10-31 15:46:15 +00:00
if [ "$1" != "" ]; then
tag="$1"
fi
buildType="N"
2006-10-31 15:46:15 +00:00
if [ "$2" != "" ]; then
buildType="$2"
fi
mydstamp=`date +'%Y%m%d'`
mytstamp=`date +'%H%M'`
timestamp="${mydstamp}-${mytstamp}"
buildId="${buildType}${timestamp}"
2006-10-31 15:46:15 +00:00
if [ "$3" != "" ]; then
buildId="$3"
fi
rm -rf "${buildDirectory}"
# 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/${launcher} org.eclipse.core.launcher.Main "
command="$command -application org.eclipse.ant.core.antRunner "
command="$command -buildfile ${pdeBuild}/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 -Dmydstamp=${mydstamp} "
command="$command -Dmytstamp=${mytstamp} "
2006-10-31 15:46:15 +00:00
if [ "$buildType" = "N" ]; then
command="$command -DforceContextQualifier=${buildId} "
command="$command -DfetchTag=HEAD "
fi
command="$command -DdoPublish=true "
command="$command -Dbootclasspath=${bootclasspath} "
command="$command -DJ2SE-1.4=${bootclasspath} "
command="$command -DJ2SE-1.5=${bootclasspath_15} "
command="$command -DCDC-1.1/Foundation-1.1=${bootclasspath_foundation11} "
#command="$command postBuild "
echo "$command"
exec $command