diff --git a/releng.control/ant.sh b/releng.control/ant.sh index 6dd6709b75c2e710f190e6ec342344eb530a2231..d7f1e46f7a80cad3ef97fbc2a3e1ba3c19bc361c 100644 --- a/releng.control/ant.sh +++ b/releng.control/ant.sh @@ -1,18 +1,24 @@ -#!/bin/sh - -# remember to leave no slashes on commonVariations in source command, -# so that users path is used to find it (first). But, path on -# commonComputedVariables means we expect to execute only our -# version - -if [ -n $BUILD_INITIALIZED ] -then - source commonVariations.shsource - source ${BUILD_HOME}/releng.control/commonComputedVariables.shsource -fi - - -ANT_CMD=${ANT_HOME}/bin/ant - -exec "$ANT_CMD" "$@" - +#!/bin/sh + +# remember to leave no slashes on commonVariations in source command, +# so that users path is used to find it (first). But, path on +# commonComputedVariables means we expect to execute only our +# version + +if [ -n $BUILD_INITIALIZED ] +then + source commonVariations.shsource + source ${BUILD_HOME}/releng.control/commonComputedVariables.shsource +fi + +# For most ant tasks, we want Java 4 to be default, +# so if not desired (such as for WTP 2.0 unit tests), +# then we have to spec Java 5 right there where we run +# the tests. +export JAVA_HOME=${JAVA_4_HOME} + + +ANT_CMD=${ANT_HOME}/bin/ant + +exec "$ANT_CMD" "$@" + diff --git a/releng.control/cc.sh b/releng.control/cc.sh index 542c11f5e7fab1104faa8dc2944ce1a9aa4f8127..30b595422e4d2802728e3258732b2bd0aeff2fd2 100644 --- a/releng.control/cc.sh +++ b/releng.control/cc.sh @@ -21,5 +21,8 @@ export CCDIR=${BUILD_HOME}/apps/cruisecontrol-bin-2.5 CCNAME="Webtools" +# We want to execute CC itself in Java 5 +export JAVA_HOME=${JAVA_5_HOME} + sh $CCDIR/cruisecontrol.sh -configfile $BUILD_HOME/releng.control/cc_config.xml -jmxport $port -webport $webport -user $trivialUserName -password $trivialPw -cchome $CCDIR -ccname $CCNAME 1>out.txt 2>err.txt & diff --git a/releng.control/commonComputedVariables.shsource b/releng.control/commonComputedVariables.shsource index 4fd3912e8844bdf8ea7bd07518afb9a1615077f4..b3a105dc2e6d3b579f6d040e51e53ccbc17451b3 100644 --- a/releng.control/commonComputedVariables.shsource +++ b/releng.control/commonComputedVariables.shsource @@ -21,20 +21,8 @@ export LOG_DIR=${BUILD_HOME}/cruise-project-logs # need for some PPC or Linux issues? export JAVA_HIGH_ZIPFDS=500 -# for now, always use Java 5 as native "home", but -# scripts and paths may still use java 1.4 -export JAVA_HOME=${JAVA_5_HOME} - -# values of the bootclasspath attribute used in ant javac calls. -# the names of these jars are VM vendor specific. the first set -# below, commented out, are typical for sun VM's. The -# second set are for IBM's VM's ... which is what we use -# on the PPC machine, so we'll leave that as the defaults -# in this file. - - -export bootclasspath="${JAVA_4_HOME}/jre/lib/core.jar:${JAVA_4_HOME}/jre/lib/ibmjsseprovider.jar:${JAVA_4_HOME}/jre/lib/xml.jar" -export bootclasspath_15="${JAVA_5_HOME}/jre/lib/core.jar:${JAVA_5_HOME}/jre/lib/vm.jar:${JAVA_5_HOME}/jre/lib/xml.jar" +# Spec java 1.4 as default vm to use +export JAVA_HOME=${JAVA_4_HOME} # OS specific support. @@ -47,14 +35,23 @@ case "$javaversion" in *ppc*) ibmjvm=true;; esac + +# values of the bootclasspath attribute used in ant javac calls. +# the names of these jars are VM vendor specific. the first set +# below, commented out, are typical for sun VM's. The +# second set are for IBM's VM's ... which is what we use +# on the PPC machine, so we'll leave that as the defaults +# in this file. + + # set initial values as if for IBM's PPC VM -export bootclasspath="${JAVA_4_HOME}/jre/lib/core.jar:${JAVA_4_HOME}/jre/lib/ibmjsseprovider.jar:${JAVA_4_HOME}/jre/lib/xml.jar" +export bootclasspath="${JAVA_4_HOME}/jre/lib/core.jar:${JAVA_4_HOME}/jre/lib/xml.jar" export bootclasspath_15="${JAVA_5_HOME}/jre/lib/core.jar:${JAVA_5_HOME}/jre/lib/vm.jar:${JAVA_5_HOME}/jre/lib/xml.jar" export ANT_OPTS="-Xms128m -Xmx512m" # and change them if Sun's VM is being used if $sunjvm ; then - export bootclasspath="${JAVA_4_HOME}/jre/lib/rt.jar:${JAVA_4_HOME}/jre/lib/jsse.jar" + export bootclasspath="${JAVA_4_HOME}/jre/lib/rt.jar" export bootclasspath_15="${JAVA_5_HOME}/jre/lib/rt.jar" export ANT_OPTS="-Xms128m -Xmx512m -XX:MaxPermSize=128M -XX:+UseParallelGC" fi diff --git a/releng.wtpbuilder/distribution/wtp.tests/build.xml b/releng.wtpbuilder/distribution/wtp.tests/build.xml index f0d25a9ba6c7a25334dbbb2f19b8b8c7a3fec9da..a81770548b3a1201ae8e38adb2978426b09cb6e8 100644 --- a/releng.wtpbuilder/distribution/wtp.tests/build.xml +++ b/releng.wtpbuilder/distribution/wtp.tests/build.xml @@ -144,7 +144,8 @@ failonerror="${testFailOnError}" timeout="${testTimeLimit}" output="${testRoot}/results/consolelogs/wtptestlog.txt" - dir="${testRoot}"> + dir="${testRoot}" + jvm="${env.JAVA_5_HOME}/bin/java"> <jvmarg value="-Dosgi.ws=${env.BASEWS}" /> <jvmarg value="-Dosgi.os=${env.BASEOS}" /> <jvmarg value="-Dosgi.arch=${env.BASEARCH}" />