blob: 046a79c8c43af4f7e3406b18bced7e530015f450 [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_williams6466bca2008-01-07 22:09:32 +000024# renamed from 'artifacts' to 'committers' to match downloads website.
25export 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_williamsb53e5762008-02-08 06:07:19 +000047export RELENGINCUBATOR=webtools.maps/releng.incubator
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_williams2e0afe02008-01-02 04:11:40 +000054
david_williamsd2387952008-07-02 04:21:10 +000055export RELENGDATATOOLS=webtools.maps/releng.datatools
56
david_williams1c3763c2008-07-01 17:31:25 +000057# top most directory not used .. it's hard to, since projects
58# use different branches.
59#export RELENGMAPS=webtools.maps
60
61
david_williams75ccd372008-01-03 03:50:09 +000062# for now, always use Java 5 as native "home", but
63# scripts and paths may still use java 1.4
64export JAVA_HOME=${JAVA_5_HOME}
65
david_williams1956d7d2008-01-02 19:04:06 +000066export PATH=${ANT_HOME}/bin:${JAVA_HOME}/bin:${PATH}
david_williams42f9b242006-11-27 18:45:14 +000067
68# project name is resolved dynamically, as CC runs
david_williamsf6c80ca2007-08-20 07:12:19 +000069export LOG_DIR=${BUILD_HOME}/logs
david_williams42f9b242006-11-27 18:45:14 +000070
david_williams673ba392008-01-02 17:41:13 +000071# need for some PPC or Linux issues
david_williams42f9b242006-11-27 18:45:14 +000072export JAVA_HIGH_ZIPFDS=500
73
david_williams673ba392008-01-02 17:41:13 +000074# for builds on local machines, SKIPUSERS should be 'true' to avoid
david_williams2e0afe02008-01-02 04:11:40 +000075# notifying users about those builds on your local machine
76# but if not defined thus far, set to false for production build machine.
david_williams673ba392008-01-02 17:41:13 +000077if [ -z ${SKIPUSERS} ]
78then
david_williams2e0afe02008-01-02 04:11:40 +000079 export SKIPUSERS=false;
80fi
david_williams42f9b242006-11-27 18:45:14 +000081
david_williams673ba392008-01-02 17:41:13 +000082# We want everything in our processes to use UTC, even when we can't
david_williams1cc549d2007-08-29 01:28:19 +000083# change the time or timezone on the build machine.
84export TZ='UTC-0';
85
david_williams42f9b242006-11-27 18:45:14 +000086export BUILD_INITIALIZED="true"
87
david_williams47177032008-01-20 05:23:30 +000088if [ -z $MINIMIZE_SCRIPT_OUTPUT ]
89then
david_williams673ba392008-01-02 17:41:13 +000090echo
david_williams42f9b242006-11-27 18:45:14 +000091echo " Project Home: ${PROJECT_HOME}"
92echo " Build Home: ${BUILD_HOME}"
93echo " DISPLAY: ${DISPLAY}"
david_williams673ba392008-01-02 17:41:13 +000094echo
david_williams42f9b242006-11-27 18:45:14 +000095echo " JAVA_4_HOME: ${JAVA_4_HOME}"
david_williams673ba392008-01-02 17:41:13 +000096echo
david_williams42f9b242006-11-27 18:45:14 +000097echo " JAVA_5_HOME: ${JAVA_5_HOME}"
david_williams673ba392008-01-02 17:41:13 +000098echo
david_williams781b02f2008-09-24 14:56:15 +000099echo " JAVA_6_HOME: ${JAVA_6_HOME}"
100echo
david_williams2e0afe02008-01-02 04:11:40 +0000101echo " ANT_HOME: ${ANT_HOME}"
david_williams673ba392008-01-02 17:41:13 +0000102echo
david_williams2e0afe02008-01-02 04:11:40 +0000103echo " PATH: ${PATH}"
david_williams673ba392008-01-02 17:41:13 +0000104echo
david_williams2e0afe02008-01-02 04:11:40 +0000105echo " BASEOS: ${BASEOS}"
106echo " BASEWS: ${BASEWS}"
david_williams42f9b242006-11-27 18:45:14 +0000107echo " BASEARCH: ${BASEARCH}"
david_williams673ba392008-01-02 17:41:13 +0000108echo
109echo " LOCAL_BUILD_PROPERTIES_DIR: ${LOCAL_BUILD_PROPERTIES_DIR}"
110echo
david_williams2e0afe02008-01-02 04:11:40 +0000111echo " remember to check that X virtual frame buffer is running for headless JUnit testing";
112ps -ef | grep Xvfb
113echo
david_williams47177032008-01-20 05:23:30 +0000114fi
david_williams2e0afe02008-01-02 04:11:40 +0000115