blob: d03072f5e11899487f6cf89b3db0621d9e79797d [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_williams8c338e62009-12-08 06:17:55 +000058export RELENGXQUERY=webtools.maps/releng.incubator.xquery
david_williams2e0afe02008-01-02 04:11:40 +000059
david_williamsd2387952008-07-02 04:21:10 +000060export RELENGDATATOOLS=webtools.maps/releng.datatools
61
david_williams6ce5e352009-01-13 23:49:50 +000062# top most directory not used .. it's hard to, since projects
david_williams1c3763c2008-07-01 17:31:25 +000063# use different branches.
64#export RELENGMAPS=webtools.maps
65
66
david_williams75ccd372008-01-03 03:50:09 +000067# for now, always use Java 5 as native "home", but
68# scripts and paths may still use java 1.4
69export JAVA_HOME=${JAVA_5_HOME}
70
david_williams1956d7d2008-01-02 19:04:06 +000071export PATH=${ANT_HOME}/bin:${JAVA_HOME}/bin:${PATH}
david_williams42f9b242006-11-27 18:45:14 +000072
73# project name is resolved dynamically, as CC runs
david_williamsf6c80ca2007-08-20 07:12:19 +000074export LOG_DIR=${BUILD_HOME}/logs
david_williams42f9b242006-11-27 18:45:14 +000075
david_williams673ba392008-01-02 17:41:13 +000076# need for some PPC or Linux issues
david_williams42f9b242006-11-27 18:45:14 +000077export JAVA_HIGH_ZIPFDS=500
78
david_williams673ba392008-01-02 17:41:13 +000079# for builds on local machines, SKIPUSERS should be 'true' to avoid
david_williams2e0afe02008-01-02 04:11:40 +000080# notifying users about those builds on your local machine
81# but if not defined thus far, set to false for production build machine.
david_williams673ba392008-01-02 17:41:13 +000082if [ -z ${SKIPUSERS} ]
83then
david_williams2e0afe02008-01-02 04:11:40 +000084 export SKIPUSERS=false;
85fi
david_williams42f9b242006-11-27 18:45:14 +000086
david_williams673ba392008-01-02 17:41:13 +000087# We want everything in our processes to use UTC, even when we can't
david_williams1cc549d2007-08-29 01:28:19 +000088# change the time or timezone on the build machine.
89export TZ='UTC-0';
90
david_williams42f9b242006-11-27 18:45:14 +000091export BUILD_INITIALIZED="true"
92
david_williams6ce5e352009-01-13 23:49:50 +000093if [ -z $MINIMIZE_SCRIPT_OUTPUT ]
david_williams47177032008-01-20 05:23:30 +000094then
david_williams673ba392008-01-02 17:41:13 +000095echo
david_williams42f9b242006-11-27 18:45:14 +000096echo " Project Home: ${PROJECT_HOME}"
97echo " Build Home: ${BUILD_HOME}"
98echo " DISPLAY: ${DISPLAY}"
david_williams673ba392008-01-02 17:41:13 +000099echo
david_williams42f9b242006-11-27 18:45:14 +0000100echo " JAVA_4_HOME: ${JAVA_4_HOME}"
david_williams673ba392008-01-02 17:41:13 +0000101echo
david_williams42f9b242006-11-27 18:45:14 +0000102echo " JAVA_5_HOME: ${JAVA_5_HOME}"
david_williams673ba392008-01-02 17:41:13 +0000103echo
david_williams781b02f2008-09-24 14:56:15 +0000104echo " JAVA_6_HOME: ${JAVA_6_HOME}"
105echo
david_williams2e0afe02008-01-02 04:11:40 +0000106echo " ANT_HOME: ${ANT_HOME}"
david_williams673ba392008-01-02 17:41:13 +0000107echo
david_williams2e0afe02008-01-02 04:11:40 +0000108echo " PATH: ${PATH}"
david_williams673ba392008-01-02 17:41:13 +0000109echo
david_williams2e0afe02008-01-02 04:11:40 +0000110echo " BASEOS: ${BASEOS}"
111echo " BASEWS: ${BASEWS}"
david_williams42f9b242006-11-27 18:45:14 +0000112echo " BASEARCH: ${BASEARCH}"
david_williams673ba392008-01-02 17:41:13 +0000113echo
114echo " LOCAL_BUILD_PROPERTIES_DIR: ${LOCAL_BUILD_PROPERTIES_DIR}"
115echo
david_williams2e0afe02008-01-02 04:11:40 +0000116echo " remember to check that X virtual frame buffer is running for headless JUnit testing";
117ps -ef | grep Xvfb
118echo
david_williams47177032008-01-20 05:23:30 +0000119fi
david_williams2e0afe02008-01-02 04:11:40 +0000120