blob: 365fc25e0dfeb0a1f2867b178e4b2f17cf70f37b [file] [log] [blame]
david_williams42f9b242006-11-27 18:45:14 +00001#!/bin/sh
2
david_williams673ba392008-01-02 17:41:13 +00003# intentionally named "shsource" to denote this is intended to
4# be included in other sh files, with "source" command, not
5# executed on its own.
david_williams42f9b242006-11-27 18:45:14 +00006
7########################################################
8
david_williams842e4192007-12-09 07:44:35 +00009export PROJECT_HOME=${BUILD_HOME}/releng.control
david_williams42f9b242006-11-27 18:45:14 +000010
david_williamse730bf22008-06-22 23:18:28 +000011export ANT_WORKING=${BUILD_HOME}/logs
david_williams2e0afe02008-01-02 04:11:40 +000012export BASE_BUILDERS=${BUILD_HOME}/basebuilders
13export PROJECT_BUILDERS=${BUILD_HOME}/projectBuilders
david_williams673ba392008-01-02 17:41:13 +000014# Set this to the relative path for the
15# directory that keeps the downloaded drivers
david_williams2e0afe02008-01-02 04:11:40 +000016# and pre-reqs
17export LOCAL_PREREQS_CACHE=${BUILD_HOME}/prereqsCache
david_williams673ba392008-01-02 17:41:13 +000018# must match cacheRoot in CC's web.xml
david_williams2e0afe02008-01-02 04:11:40 +000019export CACHE_ROOT=${BUILD_HOME}/logcache
20# must correspond to what's specified in CC's web.xml file, and config
21export LOG_DIR=${BUILD_HOME}/logs
22export PROJECT_TESTS=${BUILD_HOME}/tests
23export PROJECT_PROJECTS=${BUILD_HOME}/projects
david_williams6ce5e352009-01-13 23:49:50 +000024# renamed from 'artifacts' to 'committers' to match downloads website.
david_williams6466bca2008-01-07 22:09:32 +000025export PROJECT_ARTIFACTS=${BUILD_HOME}/committers
david_williams2e0afe02008-01-02 04:11:40 +000026
david_williamsb93c1ee2008-02-10 21:27:40 +000027export RECOMMENDED_TMP_DIR=${BUILD_HOME}/tmp
28
david_williams2e0afe02008-01-02 04:11:40 +000029# in a fresh install, we need to make sure some basic directories exist
30mkdir -p ${ANT_WORKING}
31mkdir -p ${BASE_BUILDERS}
32mkdir -p ${PROJECT_BUILDERS}
33mkdir -p ${LOCAL_PREREQS_CACHE}
34mkdir -p ${CACHE_ROOT}
35mkdir -p ${LOG_DIR}
36mkdir -p ${PROJECT_TESTS}
37mkdir -p ${PROJECT_PROJECTS}
38mkdir -p ${PROJECT_ARTIFACTS}
david_williamsb93c1ee2008-02-10 21:27:40 +000039mkdir -p ${RECOMMENDED_TMP_DIR}
david_williams2e0afe02008-01-02 04:11:40 +000040
david_williamse730bf22008-06-22 23:18:28 +000041
david_williams2e0afe02008-01-02 04:11:40 +000042export RELENG_BUILDER=webtools.releng/releng.wtpbuilder
43
44export RELENG=webtools.maps/releng
david_williams2e0afe02008-01-02 04:11:40 +000045export RELENGJSF=webtools.maps/releng.jsf
46export RELENGDALI=webtools.maps/releng.dali
david_williamsc6e5c3d2008-11-02 08:15:20 +000047export RELENGINCUBATORVEX=webtools.maps/releng.incubator.vex
david_williams8a8d6302008-03-30 19:50:35 +000048export RELENGCOMMON=webtools.maps/releng.common
49export RELENGEJBTOOLS=webtools.maps/releng.ejbtools
50export RELENGJEETOOLS=webtools.maps/releng.jeetools
51export RELENGSERVERTOOLS=webtools.maps/releng.servertools
52export RELENGSOURCEEDITING=webtools.maps/releng.sourceediting
53export RELENGWEBSERVICES=webtools.maps/releng.webservices
david_williams4bfb8122009-01-12 04:47:40 +000054export RELENGXMLSEC=webtools.maps/releng.incubator.xmlsecurity
david_williams88cbf012009-01-12 21:53:05 +000055export RELENGJAXWS=webtools.maps/releng.incubator.jaxws
david_williams80f55fa2009-10-14 20:38:11 +000056export RELENGPAVE=webtools.maps/releng.incubator.pave
david_williams28c6b5e2009-11-09 17:50:36 +000057export RELENGJSDT=webtools.maps/releng.jsdt
david_williams2e0afe02008-01-02 04:11:40 +000058
david_williamsd2387952008-07-02 04:21:10 +000059export RELENGDATATOOLS=webtools.maps/releng.datatools
60
david_williams6ce5e352009-01-13 23:49:50 +000061# top most directory not used .. it's hard to, since projects
david_williams1c3763c2008-07-01 17:31:25 +000062# use different branches.
63#export RELENGMAPS=webtools.maps
64
65
david_williams75ccd372008-01-03 03:50:09 +000066# for now, always use Java 5 as native "home", but
67# scripts and paths may still use java 1.4
68export JAVA_HOME=${JAVA_5_HOME}
69
david_williams1956d7d2008-01-02 19:04:06 +000070export PATH=${ANT_HOME}/bin:${JAVA_HOME}/bin:${PATH}
david_williams42f9b242006-11-27 18:45:14 +000071
72# project name is resolved dynamically, as CC runs
david_williamsf6c80ca2007-08-20 07:12:19 +000073export LOG_DIR=${BUILD_HOME}/logs
david_williams42f9b242006-11-27 18:45:14 +000074
david_williams673ba392008-01-02 17:41:13 +000075# need for some PPC or Linux issues
david_williams42f9b242006-11-27 18:45:14 +000076export JAVA_HIGH_ZIPFDS=500
77
david_williams673ba392008-01-02 17:41:13 +000078# for builds on local machines, SKIPUSERS should be 'true' to avoid
david_williams2e0afe02008-01-02 04:11:40 +000079# notifying users about those builds on your local machine
80# but if not defined thus far, set to false for production build machine.
david_williams673ba392008-01-02 17:41:13 +000081if [ -z ${SKIPUSERS} ]
82then
david_williams2e0afe02008-01-02 04:11:40 +000083 export SKIPUSERS=false;
84fi
david_williams42f9b242006-11-27 18:45:14 +000085
david_williams673ba392008-01-02 17:41:13 +000086# We want everything in our processes to use UTC, even when we can't
david_williams1cc549d2007-08-29 01:28:19 +000087# change the time or timezone on the build machine.
88export TZ='UTC-0';
89
david_williams42f9b242006-11-27 18:45:14 +000090export BUILD_INITIALIZED="true"
91
david_williams6ce5e352009-01-13 23:49:50 +000092if [ -z $MINIMIZE_SCRIPT_OUTPUT ]
david_williams47177032008-01-20 05:23:30 +000093then
david_williams673ba392008-01-02 17:41:13 +000094echo
david_williams42f9b242006-11-27 18:45:14 +000095echo " Project Home: ${PROJECT_HOME}"
96echo " Build Home: ${BUILD_HOME}"
97echo " DISPLAY: ${DISPLAY}"
david_williams673ba392008-01-02 17:41:13 +000098echo
david_williams42f9b242006-11-27 18:45:14 +000099echo " JAVA_4_HOME: ${JAVA_4_HOME}"
david_williams673ba392008-01-02 17:41:13 +0000100echo
david_williams42f9b242006-11-27 18:45:14 +0000101echo " JAVA_5_HOME: ${JAVA_5_HOME}"
david_williams673ba392008-01-02 17:41:13 +0000102echo
david_williams781b02f2008-09-24 14:56:15 +0000103echo " JAVA_6_HOME: ${JAVA_6_HOME}"
104echo
david_williams2e0afe02008-01-02 04:11:40 +0000105echo " ANT_HOME: ${ANT_HOME}"
david_williams673ba392008-01-02 17:41:13 +0000106echo
david_williams2e0afe02008-01-02 04:11:40 +0000107echo " PATH: ${PATH}"
david_williams673ba392008-01-02 17:41:13 +0000108echo
david_williams2e0afe02008-01-02 04:11:40 +0000109echo " BASEOS: ${BASEOS}"
110echo " BASEWS: ${BASEWS}"
david_williams42f9b242006-11-27 18:45:14 +0000111echo " BASEARCH: ${BASEARCH}"
david_williams673ba392008-01-02 17:41:13 +0000112echo
113echo " LOCAL_BUILD_PROPERTIES_DIR: ${LOCAL_BUILD_PROPERTIES_DIR}"
114echo
david_williams2e0afe02008-01-02 04:11:40 +0000115echo " remember to check that X virtual frame buffer is running for headless JUnit testing";
116ps -ef | grep Xvfb
117echo
david_williams47177032008-01-20 05:23:30 +0000118fi
david_williams2e0afe02008-01-02 04:11:40 +0000119