blob: 54222aceeaeb24852087b7a0278d21a356489037 [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_williams2e0afe02008-01-02 04:11:40 +000057
david_williamsd2387952008-07-02 04:21:10 +000058export RELENGDATATOOLS=webtools.maps/releng.datatools
59
david_williams6ce5e352009-01-13 23:49:50 +000060# top most directory not used .. it's hard to, since projects
david_williams1c3763c2008-07-01 17:31:25 +000061# use different branches.
62#export RELENGMAPS=webtools.maps
63
64
david_williams75ccd372008-01-03 03:50:09 +000065# for now, always use Java 5 as native "home", but
66# scripts and paths may still use java 1.4
67export JAVA_HOME=${JAVA_5_HOME}
68
david_williams1956d7d2008-01-02 19:04:06 +000069export PATH=${ANT_HOME}/bin:${JAVA_HOME}/bin:${PATH}
david_williams42f9b242006-11-27 18:45:14 +000070
71# project name is resolved dynamically, as CC runs
david_williamsf6c80ca2007-08-20 07:12:19 +000072export LOG_DIR=${BUILD_HOME}/logs
david_williams42f9b242006-11-27 18:45:14 +000073
david_williams673ba392008-01-02 17:41:13 +000074# need for some PPC or Linux issues
david_williams42f9b242006-11-27 18:45:14 +000075export JAVA_HIGH_ZIPFDS=500
76
david_williams673ba392008-01-02 17:41:13 +000077# for builds on local machines, SKIPUSERS should be 'true' to avoid
david_williams2e0afe02008-01-02 04:11:40 +000078# notifying users about those builds on your local machine
79# but if not defined thus far, set to false for production build machine.
david_williams673ba392008-01-02 17:41:13 +000080if [ -z ${SKIPUSERS} ]
81then
david_williams2e0afe02008-01-02 04:11:40 +000082 export SKIPUSERS=false;
83fi
david_williams42f9b242006-11-27 18:45:14 +000084
david_williams673ba392008-01-02 17:41:13 +000085# We want everything in our processes to use UTC, even when we can't
david_williams1cc549d2007-08-29 01:28:19 +000086# change the time or timezone on the build machine.
87export TZ='UTC-0';
88
david_williams42f9b242006-11-27 18:45:14 +000089export BUILD_INITIALIZED="true"
90
david_williams6ce5e352009-01-13 23:49:50 +000091if [ -z $MINIMIZE_SCRIPT_OUTPUT ]
david_williams47177032008-01-20 05:23:30 +000092then
david_williams673ba392008-01-02 17:41:13 +000093echo
david_williams42f9b242006-11-27 18:45:14 +000094echo " Project Home: ${PROJECT_HOME}"
95echo " Build Home: ${BUILD_HOME}"
96echo " DISPLAY: ${DISPLAY}"
david_williams673ba392008-01-02 17:41:13 +000097echo
david_williams42f9b242006-11-27 18:45:14 +000098echo " JAVA_4_HOME: ${JAVA_4_HOME}"
david_williams673ba392008-01-02 17:41:13 +000099echo
david_williams42f9b242006-11-27 18:45:14 +0000100echo " JAVA_5_HOME: ${JAVA_5_HOME}"
david_williams673ba392008-01-02 17:41:13 +0000101echo
david_williams781b02f2008-09-24 14:56:15 +0000102echo " JAVA_6_HOME: ${JAVA_6_HOME}"
103echo
david_williams2e0afe02008-01-02 04:11:40 +0000104echo " ANT_HOME: ${ANT_HOME}"
david_williams673ba392008-01-02 17:41:13 +0000105echo
david_williams2e0afe02008-01-02 04:11:40 +0000106echo " PATH: ${PATH}"
david_williams673ba392008-01-02 17:41:13 +0000107echo
david_williams2e0afe02008-01-02 04:11:40 +0000108echo " BASEOS: ${BASEOS}"
109echo " BASEWS: ${BASEWS}"
david_williams42f9b242006-11-27 18:45:14 +0000110echo " BASEARCH: ${BASEARCH}"
david_williams673ba392008-01-02 17:41:13 +0000111echo
112echo " LOCAL_BUILD_PROPERTIES_DIR: ${LOCAL_BUILD_PROPERTIES_DIR}"
113echo
david_williams2e0afe02008-01-02 04:11:40 +0000114echo " remember to check that X virtual frame buffer is running for headless JUnit testing";
115ps -ef | grep Xvfb
116echo
david_williams47177032008-01-20 05:23:30 +0000117fi
david_williams2e0afe02008-01-02 04:11:40 +0000118