blob: 9821312fae7f4b3822e03d2e8d5ed98031f29356 [file] [log] [blame]
david_williams8e7dbc62008-10-04 20:25:16 +00001#!/usr/bin/env bash
david_williams42f9b242006-11-27 18:45:14 +00002
david_williams673ba392008-01-02 17:41:13 +00003# If "local" users have this file on their path,
4# that is, in "someDirectory" on the users local path,
david_williams0985c462007-08-29 18:24:10 +00005# then the bash "include source" function will find that version
david_williamscc773b12008-02-23 06:28:05 +00006# first, instead of this "standard" eclipse production one.
david_williams6ce5e352009-01-13 23:49:50 +00007# That is assuming users don't have "." on their path, which
8# they shouldn't. Many systems assumes ${HOME}/bin is on the
9# users path.
david_williams42f9b242006-11-27 18:45:14 +000010
david_williamscc773b12008-02-23 06:28:05 +000011# This file is intentionally named "shsource" to denote this is intended to
david_williams673ba392008-01-02 17:41:13 +000012# be included in other sh files, with "source" command, not
13# executed on its own.
david_williams42f9b242006-11-27 18:45:14 +000014
david_williamsb4419ab2011-01-07 05:15:21 +000015# Note that throughout this file, the syntax of ${var:-default} is used so that
david_williamsbc8a02b2011-01-07 04:06:23 +000016# if a user has overridden the value, then the value will not be "re assigned" to the
17# default value ... but, if the variable has not been set yet, the default value will be
18# used. The default value should always be correct for the production machine,
19# "local" builds will need to override most of them, but not necessarily all.
20
david_williams673ba392008-01-02 17:41:13 +000021# Some things _have_ to go in this file, instead of being an ant property,
22# since they may be used outside the contect of ant (or, before ant get's started).
23# as one example, anything used directly in the cc_config.xml file has to be
24# provided as environment variable, since it can not import ant property files
david_williams3a43f632007-12-12 09:42:20 +000025# like most ant project files can.
david_williams42f9b242006-11-27 18:45:14 +000026
david_williamscc773b12008-02-23 06:28:05 +000027# the top directory of build-related directories
david_williamsb4419ab2011-01-07 05:15:21 +000028export BUILD_HOME=${BUILD_HOME:-/shared/webtools}
david_williams42f9b242006-11-27 18:45:14 +000029
david_williamscc773b12008-02-23 06:28:05 +000030# the following does not commonly vary, but must be specified "early"
31# so is specified in this file
david_williamsb4419ab2011-01-07 05:15:21 +000032export RELENG_CONTROL=${RELENG_CONTROL:-${BUILD_HOME}/releng.control}
david_williams42f9b242006-11-27 18:45:14 +000033
david_williams6ce5e352009-01-13 23:49:50 +000034# this variable must batch the screen number that Xvfb is using
david_williamsb4419ab2011-01-07 05:15:21 +000035export DISPLAYNUMBER=${DISPLAYNUMBER:-9}
36export DISPLAY=${DISPLAY:-127.0.0.1:$DISPLAYNUMBER.0}
david_williams0985c462007-08-29 18:24:10 +000037
david_williams842e4192007-12-09 07:44:35 +000038# these should be full, abosolute path to the respective home directories
39# on this particular build machine
david_williamsd3fb34a2011-02-23 03:56:14 +000040export ANT_HOME=${ANT_HOME:-/shared/webtools/apps/apache-ant-1.8.2}
david_williams38135e02011-08-13 20:53:10 +000041export JAVA_4_HOME=${JAVA_4_HOME:-/shared/webtools/apps/IBMJava2-142}
david_williamsa6564532011-08-13 19:47:29 +000042export JAVA_5_HOME=${JAVA_5_HOME:-/shared/webtools/apps/ibm-java2-i386-50}
43export JAVA_6_HOME=${JAVA_6_HOME:-/shared/webtools/apps/ibm-java-i386-60}
david_williams20c7df52010-05-18 13:36:03 +000044
david_williams2e0afe02008-01-02 04:11:40 +000045
david_williamsb4419ab2011-01-07 05:15:21 +000046export CCDIR=${CCDIR:-/shared/webtools/apps/cruisecontrol-bin-2.8.4}
david_williams42f9b242006-11-27 18:45:14 +000047
david_williamsb4419ab2011-01-07 05:15:21 +000048export BASEOS=${BASEOS:-linux}
49export BASEWS=${BASEWS:-gtk}
50export BASEARCH=${BASEARCH:-x86}
david_williams42f9b242006-11-27 18:45:14 +000051
52# no local build properties, for production builds
david_williams673ba392008-01-02 17:41:13 +000053# for local builds, this should be set to a real directory,
david_williams536b5952007-12-09 06:03:17 +000054# so meaningful properties can be set for that local machine.
david_williams842e4192007-12-09 07:44:35 +000055# See the 'localBuildExample' directory for a starting example
david_williamsb4419ab2011-01-07 05:15:21 +000056export LOCAL_BUILD_PROPERTIES_DIR=${LOCAL_BUILD_PROPERTIES_DIR:-}
david_williams42f9b242006-11-27 18:45:14 +000057
david_williams673ba392008-01-02 17:41:13 +000058# note: buildmaster email address should be "real" address
59# that is subscribed to the mailing list, if you want to send
david_williamscc773b12008-02-23 06:28:05 +000060# mail to mailing lists.
david_williamsb4419ab2011-01-07 05:15:21 +000061export BUILD_BUILDMASTER_EMAIL=${BUILD_BUILDMASTER_EMAIL:-david.williams@eclipse.org}
62export BUILD_BUILDMASTER_RETURN_NAME=${BUILD_BUILDMASTER_RETURN_NAME:-wtpBuilder}
david_williamsbefc9db2008-03-04 05:48:57 +000063# use following for CC 2.7.1
64#export BUILD_RESULT_URL=http://build.eclipse.org:7777/dashboard/build/detail
david_williamsb315aba2008-10-09 20:15:22 +000065# use following for CC 2.7.2, 2.7.3
david_williamsb4419ab2011-01-07 05:15:21 +000066export BUILD_RESULT_URL=${BUILD_RESULT_URL:-http://build.eclipse.org:7777/dashboard/tab/build/detail}
david_williamsa04c1c72008-03-03 03:55:24 +000067
david_williams11afa102011-07-02 14:32:35 +000068export BUILD_ALWAYS_TO_ADDRESS=${BUILD_ALWAYS_TO_ADDRESS:-ccc@us.ibm.com}
david_williams023b8072008-12-12 08:24:49 +000069
david_williamsb4419ab2011-01-07 05:15:21 +000070export BUILD_SUBJECT_PREFIX=${BUILD_SUBJECT_PREFIX:-WTPBUILD:}
david_williams13d378c2007-08-22 04:04:54 +000071
david_williams6ce5e352009-01-13 23:49:50 +000072# note: this file, notifyMapper.properties is not normally in cvs,
david_williams21902522008-01-30 07:27:35 +000073# to avoid "publishing" email addresses; but is maintained directly on
david_williams6ce5e352009-01-13 23:49:50 +000074# the build server.
david_williamsb4419ab2011-01-07 05:15:21 +000075export EMAIL_PROPERTIES=${EMAIL_PROPERTIES:-${BUILD_HOME}/notification/notifyMapper.properties}
david_williams21902522008-01-30 07:27:35 +000076
david_williamsd33d3a02007-08-22 04:40:40 +000077# controls quietness of logging to console
78# false means more output to console, true uses ant's logger
david_williamsb4419ab2011-01-07 05:15:21 +000079export USE_LOGGER=${USE_LOGGER:-true}
david_williamsd33d3a02007-08-22 04:40:40 +000080
81#contols ANT's quietness level
david_williams673ba392008-01-02 17:41:13 +000082# true logs error and warnings only
david_williamsb4419ab2011-01-07 05:15:21 +000083export USE_QUIET=${USE_QUIET:-true}
david_williamsb25ea8d2007-08-22 07:22:55 +000084
david_williams0985c462007-08-29 18:24:10 +000085# controls ANT's debug level
86# setting to true will result in TONS of ouput
david_williamsb4419ab2011-01-07 05:15:21 +000087export USE_DEBUG=${USE_DEBUG:-false}
david_williams4d17cf52007-11-19 03:27:13 +000088
david_williams673ba392008-01-02 17:41:13 +000089# should be true for production, false for local.
90# it can be set to true for local builds, but then the
david_williams3a43f632007-12-12 09:42:20 +000091# properties in upload.properties need to be set to valid values.
david_williamsb4419ab2011-01-07 05:15:21 +000092export BUILD_UPLOAD=${BUILD_UPLOAD:-true}
david_williams80a0b0a2007-12-11 02:38:34 +000093
david_williamsfa314d02011-03-06 09:01:30 +000094# normally, cvs logging output can be "really quiet", but if problems,
95# then it can be turned back on
david_williams842e4192007-12-09 07:44:35 +000096# to get more potentially diagnostic information
97# TODO: if both of these are 'true' and error is generated by cvs ...
david_williams673ba392008-01-02 17:41:13 +000098# saying you can't set both to true.
david_williamsfa314d02011-03-06 09:01:30 +000099# we could put in some logic to prevent that, but ... CVS_QUIET is not that
100# useful as almost the same thing as default. See
101# https://bugs.eclipse.org/bugs/show_bug.cgi?id=256379
102# So, I am eliminating cvs_quiet
103# export CVS_QUIET=${CVS_QUIET:-true}
david_williamsb4419ab2011-01-07 05:15:21 +0000104export CVS_REALLY_QUIET=${CVS_REALLY_QUIET:-true}
david_williams673ba392008-01-02 17:41:13 +0000105# these cvs values need to have write access if
106# tag.maps is true, as on production machine.
107# This is the ID used to both read, and
david_williams842e4192007-12-09 07:44:35 +0000108# to tag releng map files.
109#
david_williams673ba392008-01-02 17:41:13 +0000110# Note:
111# 'ext' protocol typically requires
david_williams842e4192007-12-09 07:44:35 +0000112# environment variable CVS_RSH to be set to ssh
113# So, we just always do it. Can't imagine it'd hurt
david_williams673ba392008-01-02 17:41:13 +0000114# if protocol was pserver, but could be removed in that
115# case, if desired.
david_williamsb4419ab2011-01-07 05:15:21 +0000116export CVS_RSH=${CVS_RSH:-ssh}
david_williamsc8521022011-07-02 02:53:26 +0000117
david_williamsb4419ab2011-01-07 05:15:21 +0000118export BUILD_CVS_READ_PROTOCOL=${BUILD_CVS_READ_PROTOCOL:-pserver}
119export BUILD_CVS_READ_USER=${BUILD_CVS_READ_USER:-anonymous}
david_williamsc8521022011-07-02 02:53:26 +0000120
121# Note: a real committer id is required to tag map files.
122# This is hard to do automatically, running under wtpBuild user id.
123# if anonymous is used, no tagging of map files will be attempted.
124# export BUILD_CVS_WRITE_PROTOCOL=${BUILD_CVS_WRITE_PROTOCOL:-ext}
125# export BUILD_CVS_WRITE_USER=${BUILD_CVS_WRITE_USER:-realCommitterID}
126export BUILD_CVS_WRITE_PROTOCOL=${BUILD_CVS_WRITE_PROTOCOL:-pserver}
127export BUILD_CVS_WRITE_USER=${BUILD_CVS_WRITE_USER:-anonymous}
128
david_williamsb4419ab2011-01-07 05:15:21 +0000129export BUILD_CVS_SERVER=${BUILD_CVS_SERVER:-dev.eclipse.org}
david_williams2e0afe02008-01-02 04:11:40 +0000130
david_williamsb4419ab2011-01-07 05:15:21 +0000131export BUILD_CVS_ROOT=${BUILD_CVS_ROOT:-/cvsroot/webtools}
david_williams2e0afe02008-01-02 04:11:40 +0000132
david_williams673ba392008-01-02 17:41:13 +0000133# for builds on local machines, SKIPUSERS should be 'true' to avoid
david_williams2e0afe02008-01-02 04:11:40 +0000134# notifying users about those builds on your local machine
david_williamsb4419ab2011-01-07 05:15:21 +0000135export SKIPUSERS=${SKIPUSERS:-false}
david_williamsbd17e9e2008-01-20 05:05:16 +0000136
david_williamsb4419ab2011-01-07 05:15:21 +0000137export DOWNLOAD_ROOT=${DOWNLOAD_ROOT:-/home/data/httpd/download.eclipse.org}
david_williams2171a5b2008-02-10 08:15:08 +0000138
david_williams6ce5e352009-01-13 23:49:50 +0000139# Here this variable, SKIP_JAR_SIGNING, should be false for
140# production builds. But, the variable is set elsewhere to true,
david_williamscc773b12008-02-23 06:28:05 +0000141# such as in cc_config, for the R2 builds.
142# There is another variable, 'sign' in each components build.properties
david_williams6ce5e352009-01-13 23:49:50 +0000143# to allow components to be the final say to allow signing.
144# This variable, SKIP_JAR_SIGNING, should always be true for
145# "local" builds.
david_williamsb4419ab2011-01-07 05:15:21 +0000146export SKIP_JAR_SIGNING=${SKIP_JAR_SIGNING:-false}
david_williams0be0d972008-02-16 05:38:57 +0000147
david_williamsb4419ab2011-01-07 05:15:21 +0000148export DASHBOARDHOST=${DASHBOARDHOST:-206.191.52.34}
david_williams7f87e3e2009-11-19 03:47:11 +0000149
150# comment out WTP_XULRUNNER if no special version is required
151# rarely needed. machine specific
david_williams297615b2010-09-11 22:03:53 +0000152# no longer needed on build.eclipse.org
david_williamse8dcff72010-08-09 01:31:08 +0000153#export WTP_XULRUNNER=/shared/common/mozilla-xulrunner181-1.8.1.4-30.ppc
david_williams297615b2010-09-11 22:03:53 +0000154#echo "WTP_XULRUNNER: " $WTP_XULRUNNER
david_williamsa091ca02009-12-28 07:38:44 +0000155
david_williamsb4419ab2011-01-07 05:15:21 +0000156export DASHBOARD_CONFIG=${DASHBOARD_CONFIG:-${RELENG_CONTROL}/dashboard-config.xml}
david_williams297615b2010-09-11 22:03:53 +0000157
158
159# global VM options
160# see following for general information about setting env variables that effect IBM's JVM
161# http://publib.boulder.ibm.com/infocenter/javasdk/v5r0/index.jsp?topic=/com.ibm.java.doc.diagnostics.50/diag/appendixes/env_var/env_jvm.html
162
163# see https://bugs.eclipse.org/bugs/show_bug.cgi?id=324983
164# -Declipse.p2.mirrors=false
165
166# see https://bugs.eclipse.org/bugs/show_bug.cgi?id=323876
167# -Dcom.ibm.tools.attach.enable=no
168
david_williamsb4419ab2011-01-07 05:15:21 +0000169export IBM_JAVA_OPTIONS=${IBM_JAVA_OPTIONS:-"-Dcom.ibm.tools.attach.enable=no -Declipse.p2.mirrors=false"}
david_williams297615b2010-09-11 22:03:53 +0000170
david_williams6fe28732011-01-22 07:27:06 +0000171export ECLIPSE_HOME=${ECLIPSE_HOME:-"/shared/webtools/apps/eclipse361/eclipse"}
172export ECLIPSE_EXE=${ECLIPSE_EXE:-"${ECLIPSE_HOME}/eclipse"}