blob: 4da5fb093001f54b843388a1179503a89cf7ad9a [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_williams2e0afe02008-01-02 04:11:40 +000056
david_williamsd2387952008-07-02 04:21:10 +000057export RELENGDATATOOLS=webtools.maps/releng.datatools
58
david_williams6ce5e352009-01-13 23:49:50 +000059# top most directory not used .. it's hard to, since projects
david_williams1c3763c2008-07-01 17:31:25 +000060# use different branches.
61#export RELENGMAPS=webtools.maps
62
63
david_williams75ccd372008-01-03 03:50:09 +000064# for now, always use Java 5 as native "home", but
65# scripts and paths may still use java 1.4
66export JAVA_HOME=${JAVA_5_HOME}
67
david_williams1956d7d2008-01-02 19:04:06 +000068export PATH=${ANT_HOME}/bin:${JAVA_HOME}/bin:${PATH}
david_williams42f9b242006-11-27 18:45:14 +000069
70# project name is resolved dynamically, as CC runs
david_williamsf6c80ca2007-08-20 07:12:19 +000071export LOG_DIR=${BUILD_HOME}/logs
david_williams42f9b242006-11-27 18:45:14 +000072
david_williams673ba392008-01-02 17:41:13 +000073# need for some PPC or Linux issues
david_williams42f9b242006-11-27 18:45:14 +000074export JAVA_HIGH_ZIPFDS=500
75
david_williams673ba392008-01-02 17:41:13 +000076# for builds on local machines, SKIPUSERS should be 'true' to avoid
david_williams2e0afe02008-01-02 04:11:40 +000077# notifying users about those builds on your local machine
78# but if not defined thus far, set to false for production build machine.
david_williams673ba392008-01-02 17:41:13 +000079if [ -z ${SKIPUSERS} ]
80then
david_williams2e0afe02008-01-02 04:11:40 +000081 export SKIPUSERS=false;
82fi
david_williams42f9b242006-11-27 18:45:14 +000083
david_williams673ba392008-01-02 17:41:13 +000084# We want everything in our processes to use UTC, even when we can't
david_williams1cc549d2007-08-29 01:28:19 +000085# change the time or timezone on the build machine.
86export TZ='UTC-0';
87
david_williams42f9b242006-11-27 18:45:14 +000088export BUILD_INITIALIZED="true"
89
david_williams6ce5e352009-01-13 23:49:50 +000090if [ -z $MINIMIZE_SCRIPT_OUTPUT ]
david_williams47177032008-01-20 05:23:30 +000091then
david_williams673ba392008-01-02 17:41:13 +000092echo
david_williams42f9b242006-11-27 18:45:14 +000093echo " Project Home: ${PROJECT_HOME}"
94echo " Build Home: ${BUILD_HOME}"
95echo " DISPLAY: ${DISPLAY}"
david_williams673ba392008-01-02 17:41:13 +000096echo
david_williams42f9b242006-11-27 18:45:14 +000097echo " JAVA_4_HOME: ${JAVA_4_HOME}"
david_williams673ba392008-01-02 17:41:13 +000098echo
david_williams42f9b242006-11-27 18:45:14 +000099echo " JAVA_5_HOME: ${JAVA_5_HOME}"
david_williams673ba392008-01-02 17:41:13 +0000100echo
david_williams781b02f2008-09-24 14:56:15 +0000101echo " JAVA_6_HOME: ${JAVA_6_HOME}"
102echo
david_williams2e0afe02008-01-02 04:11:40 +0000103echo " ANT_HOME: ${ANT_HOME}"
david_williams673ba392008-01-02 17:41:13 +0000104echo
david_williams2e0afe02008-01-02 04:11:40 +0000105echo " PATH: ${PATH}"
david_williams673ba392008-01-02 17:41:13 +0000106echo
david_williams2e0afe02008-01-02 04:11:40 +0000107echo " BASEOS: ${BASEOS}"
108echo " BASEWS: ${BASEWS}"
david_williams42f9b242006-11-27 18:45:14 +0000109echo " BASEARCH: ${BASEARCH}"
david_williams673ba392008-01-02 17:41:13 +0000110echo
111echo " LOCAL_BUILD_PROPERTIES_DIR: ${LOCAL_BUILD_PROPERTIES_DIR}"
112echo
david_williams2e0afe02008-01-02 04:11:40 +0000113echo " remember to check that X virtual frame buffer is running for headless JUnit testing";
114ps -ef | grep Xvfb
115echo
david_williams47177032008-01-20 05:23:30 +0000116fi
david_williams2e0afe02008-01-02 04:11:40 +0000117