Skip to content
Snippets Groups Projects
Commit c2f29801 authored by david_williams's avatar david_williams
Browse files

fix some Java 1.4 vs. 1.5 issues

parent 5e56685d
No related branches found
No related tags found
No related merge requests found
#!/bin/sh #!/bin/sh
# remember to leave no slashes on commonVariations in source command, # remember to leave no slashes on commonVariations in source command,
# so that users path is used to find it (first). But, path on # so that users path is used to find it (first). But, path on
# commonComputedVariables means we expect to execute only our # commonComputedVariables means we expect to execute only our
# version # version
if [ -n $BUILD_INITIALIZED ] if [ -n $BUILD_INITIALIZED ]
then then
source commonVariations.shsource source commonVariations.shsource
source ${BUILD_HOME}/releng.control/commonComputedVariables.shsource source ${BUILD_HOME}/releng.control/commonComputedVariables.shsource
fi fi
# For most ant tasks, we want Java 4 to be default,
ANT_CMD=${ANT_HOME}/bin/ant # so if not desired (such as for WTP 2.0 unit tests),
# then we have to spec Java 5 right there where we run
exec "$ANT_CMD" "$@" # the tests.
export JAVA_HOME=${JAVA_4_HOME}
ANT_CMD=${ANT_HOME}/bin/ant
exec "$ANT_CMD" "$@"
...@@ -21,5 +21,8 @@ export CCDIR=${BUILD_HOME}/apps/cruisecontrol-bin-2.5 ...@@ -21,5 +21,8 @@ export CCDIR=${BUILD_HOME}/apps/cruisecontrol-bin-2.5
CCNAME="Webtools" 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 & 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 &
...@@ -21,20 +21,8 @@ export LOG_DIR=${BUILD_HOME}/cruise-project-logs ...@@ -21,20 +21,8 @@ export LOG_DIR=${BUILD_HOME}/cruise-project-logs
# need for some PPC or Linux issues? # need for some PPC or Linux issues?
export JAVA_HIGH_ZIPFDS=500 export JAVA_HIGH_ZIPFDS=500
# for now, always use Java 5 as native "home", but # Spec java 1.4 as default vm to use
# scripts and paths may still use java 1.4 export JAVA_HOME=${JAVA_4_HOME}
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"
# OS specific support. # OS specific support.
...@@ -47,14 +35,23 @@ case "$javaversion" in ...@@ -47,14 +35,23 @@ case "$javaversion" in
*ppc*) ibmjvm=true;; *ppc*) ibmjvm=true;;
esac 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 # 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 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" export ANT_OPTS="-Xms128m -Xmx512m"
# and change them if Sun's VM is being used # and change them if Sun's VM is being used
if $sunjvm ; then 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 bootclasspath_15="${JAVA_5_HOME}/jre/lib/rt.jar"
export ANT_OPTS="-Xms128m -Xmx512m -XX:MaxPermSize=128M -XX:+UseParallelGC" export ANT_OPTS="-Xms128m -Xmx512m -XX:MaxPermSize=128M -XX:+UseParallelGC"
fi fi
......
...@@ -144,7 +144,8 @@ ...@@ -144,7 +144,8 @@
failonerror="${testFailOnError}" failonerror="${testFailOnError}"
timeout="${testTimeLimit}" timeout="${testTimeLimit}"
output="${testRoot}/results/consolelogs/wtptestlog.txt" 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.ws=${env.BASEWS}" />
<jvmarg value="-Dosgi.os=${env.BASEOS}" /> <jvmarg value="-Dosgi.os=${env.BASEOS}" />
<jvmarg value="-Dosgi.arch=${env.BASEARCH}" /> <jvmarg value="-Dosgi.arch=${env.BASEARCH}" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment