Skip to content

Commit

Permalink
jdk 11 tck build.
Browse files Browse the repository at this point in the history
Signed-off-by: gurunandan.rao@oracle.com <gurunandan.rao@oracle.com>
  • Loading branch information
gurunrao committed Sep 22, 2021
1 parent 9a3472e commit aa2b698
Show file tree
Hide file tree
Showing 71 changed files with 334 additions and 13,207 deletions.
10 changes: 5 additions & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -163,7 +163,7 @@ spec:
}
parameters {
string(name: 'GF_BUNDLE_URL',
defaultValue: '',
defaultValue: 'https://download.eclipse.org/ee4j/glassfish/glassfish-6.1.0.zip',
description: 'URL required for downloading GlassFish Full/Web profile bundle' )
string(name: 'GF_VERSION_URL',
defaultValue: '',
Expand All @@ -182,8 +182,8 @@ spec:
description: 'List of standalone TCK bundle file names to be appended to the base url' )
choice(name: 'PROFILE', choices: 'FULL\nWEB',
description: 'Profile to be used for running CTS either web/full' )
choice(name: 'JDK', choices: 'JDK8\nJDK11',
description: 'Java SE Version to be used for running TCK either JDK8/JDK11' )
choice(name: 'JDK', choices: 'JDK11',
description: 'Java SE Version to be used for running TCK either JDK11' )
choice(name: 'LICENSE', choices: 'EPL\nEFTL',
description: 'License file to be used to build the TCK bundle(s) either EPL(default) or Eclipse Foundation TCK License' )
choice(name: 'DATABASE', choices: 'JavaDB\nOracle\nMySQL',
Expand All @@ -204,7 +204,7 @@ spec:
MAIL_USER="user01@james.local"
MAIL_HOST="localhost"
LANG="en_US.UTF-8"
DEFAULT_GF_BUNDLE_URL="https://download.eclipse.org/ee4j/glassfish/glassfish-6.0.0-SNAPSHOT-nightly.zip"
DEFAULT_GF_BUNDLE_URL="https://download.eclipse.org/ee4j/glassfish/glassfish-6.1.0-SNAPSHOT-nightly.zip"
}
stages {
stage('jakartaeetck-build') {
Expand Down
14 changes: 5 additions & 9 deletions docker/build_jakartaeetck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ if [ -z "$ANT_HOME" ]; then
export ANT_HOME=/usr/share/ant/
fi

if [ -z "$JAVA_HOME" ]; then
export JAVA_HOME=/opt/jdk1.8.0_171
fi

export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH

cd $WORKSPACE
Expand Down Expand Up @@ -70,10 +67,9 @@ ant -version
which java
java -version

export ANT_OPTS="-Xmx2G -Djava.endorsed.dirs=${JAKARTA_JARS}/endorsed \
-Djavax.xml.accessExternalStylesheet=all \
export ANT_OPTS="-Xmx2G -Djavax.xml.accessExternalStylesheet=all \
-Djavax.xml.accessExternalSchema=all \
-DenableExternalEntityProcessing=true \
-DenableExternalEntityProcessing=true \
-Djavax.xml.accessExternalDTD=file,http"

echo ########## Remove hard-coded paths from install/jakartaee/bin/ts.jte ##########"
Expand All @@ -93,7 +89,7 @@ echo "########## Trunk.Install.V5 Config ##########"
cd $BASEDIR

mkdir -p $JAKARTA_JARS/modules
mkdir -p $JAKARTA_JARS/endorsed


mvn -f $BASEDIR/docker/pom.xml dependency:copy-dependencies -DoutputDirectory="${JAKARTA_JARS}/modules" -Dmdep.stripVersion=true

Expand All @@ -108,7 +104,7 @@ echo "########## Trunk.Build ##########"
ant -f $BASEDIR/install/jakartaee/bin/build.xml -Ddeliverabledir=jakartaee -Dbasedir=$BASEDIR/install/jakartaee/bin modify.jstl.db.resources

# Full workspace build.
ant -f $BASEDIR/install/jakartaee/bin/build.xml -Ddeliverabledir=jakartaee -Dbasedir=$BASEDIR/install/jakartaee/bin -Djava.endorsed.dirs=$JAKARTA_JARS/endorsed build.all
ant -f $BASEDIR/install/jakartaee/bin/build.xml -Ddeliverabledir=jakartaee -Dbasedir=$BASEDIR/install/jakartaee/bin build.all


echo "########## Trunk.Sanitize.JTE ##########"
Expand Down
17 changes: 11 additions & 6 deletions docker/build_standalone-tcks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ if [ -z "${GF_HOME}" ]; then
export GF_HOME=${WORKSPACE}
fi

export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH


which ant
ant -version

Expand All @@ -45,8 +49,7 @@ if [ ! -z "$GF_VERSION_URL" ]; then
cat glassfish.version
fi

export ANT_OPTS="-Xmx2G -Djava.endorsed.dirs=${BASEDIR}/$GF_TOPLEVEL_DIR/glassfish/modules/endorsed \
-Djavax.xml.accessExternalStylesheet=all \
export ANT_OPTS="-Xmx2G -Djavax.xml.accessExternalStylesheet=all \
-Djavax.xml.accessExternalSchema=all \
-DenableExternalEntityProcessing=true \
-Djavax.xml.accessExternalDTD=file,http,https"
Expand Down Expand Up @@ -99,6 +102,8 @@ if [ ! -z "$TCK_BUNDLE_BASE_URL" ]; then
exit 0
fi

RMI_CLASSES="-Drmi.classes=$GF_HOME/$GF_TOPLEVEL_DIR/glassfish/modules/glassfish-corba-omgapi.jar"

for tck in ${TCK_LIST[@]}; do
if [ "jta" == "$tck" ]
then
Expand Down Expand Up @@ -197,7 +202,7 @@ for tck in ${TCK_LIST[@]}; do
JAXWS_SPECIFIC_PROPS=""
elif [ "saaj" == "$tck" ]
then
TCK_SPECIFIC_PROPS="-Dlocal.classes=$GF_HOME/$GF_TOPLEVEL_DIR/glassfish/modules/webservices-osgi.jar:$GF_HOME/$GF_TOPLEVEL_DIR/glassfish/modules/webservices-api-osgi.jar:$GF_HOME/$GF_TOPLEVEL_DIR/glassfish/modules/jakarta.activation.jar:$GF_HOME/$GF_TOPLEVEL_DIR/glassfish/modules/jakarta.servlet-api.jar:$GF_HOME/$GF_TOPLEVEL_DIR/glassfish/modules/jakarta.ejb-api.jar -Dwebcontainer.home=$GF_HOME/$GF_TOPLEVEL_DIR/glassfish -Dendorsed.dirs=$GF_HOME/$GF_TOPLEVEL_DIR/glassfish/modules/endorsed"
TCK_SPECIFIC_PROPS="-Dlocal.classes=$GF_HOME/$GF_TOPLEVEL_DIR/glassfish/modules/webservices-osgi.jar:$GF_HOME/$GF_TOPLEVEL_DIR/glassfish/modules/webservices-api-osgi.jar:$GF_HOME/$GF_TOPLEVEL_DIR/glassfish/modules/jakarta.activation.jar:$GF_HOME/$GF_TOPLEVEL_DIR/glassfish/modules/jakarta.servlet-api.jar:$GF_HOME/$GF_TOPLEVEL_DIR/glassfish/modules/jakarta.ejb-api.jar -Dwebcontainer.home=$GF_HOME/$GF_TOPLEVEL_DIR/glassfish"
DOC_SPECIFIC_PROPS=""
JAXWS_SPECIFIC_PROPS=""
elif [ "servlet" == "$tck" ]
Expand All @@ -210,12 +215,12 @@ for tck in ${TCK_LIST[@]}; do
fi

echo "########## Trunk.$tck Started##########"
ant -f $BASEDIR/install/$tck/bin/build.xml -Ddeliverabledir=$tck -Dbasedir=$BASEDIR/install/$tck/bin $TCK_SPECIFIC_PROPS $JAXWS_SPECIFIC_PROPS clean.all build.all.jars
ant -f $BASEDIR/install/$tck/bin/build.xml -Ddeliverabledir=$tck -Dbasedir=$BASEDIR/install/$tck/bin $RMI_CLASSES $TCK_SPECIFIC_PROPS $JAXWS_SPECIFIC_PROPS clean.all build.all.jars

ant -f $BASEDIR/install/$tck/bin/build.xml -Ddeliverabledir=$tck -Dbasedir=$BASEDIR/install/$tck/bin $TCK_SPECIFIC_PROPS $JAXWS_SPECIFIC_PROPS -Djava.endorsed.dirs=$BASEDIR/$GF_TOPLEVEL_DIR/glassfish/modules/endorsed build.all
ant -f $BASEDIR/install/$tck/bin/build.xml -Ddeliverabledir=$tck -Dbasedir=$BASEDIR/install/$tck/bin $RMI_CLASSES $TCK_SPECIFIC_PROPS $JAXWS_SPECIFIC_PROPS -Djava.endorsed.dirs=$BASEDIR/$GF_TOPLEVEL_DIR/glassfish/modules/endorsed build.all

if [ "jaxrs" == "$tck" ]; then
ant -f $BASEDIR/install/$tck/bin/build.xml -Ddeliverabledir=$tck -Dbasedir=$BASEDIR/install/$tck/bin $TCK_SPECIFIC_PROPS update.jaxrs.wars
ant -f $BASEDIR/install/$tck/bin/build.xml -Ddeliverabledir=$tck -Dbasedir=$BASEDIR/install/$tck/bin $RMI_CLASSES $TCK_SPECIFIC_PROPS update.jaxrs.wars
fi

mkdir -p $BASEDIR/internal/docs/$tck
Expand Down
11 changes: 3 additions & 8 deletions docker/cajtck.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -x

# Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2018, 2021 Oracle and/or its affiliates. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -55,13 +55,8 @@ echo "TS_HOME $TS_HOME"
chmod -R 777 $TS_HOME
cd $TS_HOME/bin

if [[ "$JDK" == "JDK11" || "$JDK" == "jdk11" ]];then
export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$PATH
cp ts.jte.jdk11 ts.jte
else
sed -i "s#^endorsed.dirs=.*#endorsed.dirs=$TCK_HOME/$GF_TOPLEVEL_DIR/glassfish/modules/endorsed#g" ts.jte
fi
export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$PATH

which java
java -version
Expand Down
7 changes: 2 additions & 5 deletions docker/concurrencytck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,8 @@ rm -f $TS_HOME/dist/com/sun/ts/tests/concurrency/spec/ContextService/contextProp

cd $TS_HOME/bin

if [[ "$JDK" == "JDK11" || "$JDK" == "jdk11" ]];then
export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$PATH
cp ts.jte.jdk11 ts.jte
fi
export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$PATH

which java
java -version
Expand Down
10 changes: 4 additions & 6 deletions docker/connectortck.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -xe

# Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2018, 2021 Oracle and/or its affiliates. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -55,11 +55,9 @@ echo "TS_HOME $TS_HOME"
chmod -R 777 $TS_HOME

cd $TS_HOME/bin
if [[ "$JDK" == "JDK11" || "$JDK" == "jdk11" ]];then
export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$PATH
cp ts.jte.jdk11 ts.jte
fi

export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$PATH

which java
java -version
Expand Down
7 changes: 2 additions & 5 deletions docker/eltck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,8 @@ chmod -R 777 $TS_HOME

cd $TS_HOME/bin

if [[ "$JDK" == "JDK11" || "$JDK" == "jdk11" ]];then
export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$PATH
cp ts.jte.jdk11 ts.jte
fi
export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$PATH

which java
java -version
Expand Down
9 changes: 3 additions & 6 deletions docker/jacctck.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -x

# Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2018, 2021 Oracle and/or its affiliates. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -55,11 +55,8 @@ chmod -R 777 $TS_HOME

cd $TS_HOME/bin

if [[ "$JDK" == "JDK11" || "$JDK" == "jdk11" ]];then
export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$PATH
cp ts.jte.jdk11 ts.jte
fi
export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$PATH

which java
java -version
Expand Down
9 changes: 3 additions & 6 deletions docker/jaspictck.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -xe

# Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2018, 2021 Oracle and/or its affiliates. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -59,11 +59,8 @@ chmod -R 777 $TS_HOME

cd $TS_HOME/bin

if [[ "$JDK" == "JDK11" || "$JDK" == "jdk11" ]];then
export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$PATH
cp ts.jte.jdk11 ts.jte
fi
export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$PATH

which java
java -version
Expand Down
9 changes: 3 additions & 6 deletions docker/jaxrstck.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -xe

# Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2018, 2021 Oracle and/or its affiliates. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -54,11 +54,8 @@ echo "TS_HOME $TS_HOME"
chmod -R 777 $TS_HOME
cd $TS_HOME/bin

if [[ "$JDK" == "JDK11" || "$JDK" == "jdk11" ]];then
export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$PATH
cp ts.jte.jdk11 ts.jte
fi
export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$PATH

which java
java -version
Expand Down
12 changes: 4 additions & 8 deletions docker/jaxwstck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,10 @@ echo "TS_HOME $TS_HOME"
chmod -R 777 $TS_HOME
cd $TS_HOME/bin

if [[ "$JDK" == "JDK11" || "$JDK" == "jdk11" ]];then
export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$PATH
cp ts.jte.jdk11 ts.jte
export ANT_OPTS="-Djavax.xml.accessExternalStylesheet=all -Djavax.xml.accessExternalSchema=all -Djavax.xml.accessExternalDTD=file,http,https"
else
export ANT_OPTS="-Djava.endorsed.dirs=$TCK_HOME/$GF_TOPLEVEL_DIR/glassfish/modules/endorsed -Djavax.xml.accessExternalStylesheet=all -Djavax.xml.accessExternalSchema=all -Djavax.xml.accessExternalDTD=file,http,https"
fi
export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$PATH
export ANT_OPTS="-Djavax.xml.accessExternalStylesheet=all -Djavax.xml.accessExternalSchema=all -Djavax.xml.accessExternalDTD=file,http,https"


which java
java -version
Expand Down
9 changes: 3 additions & 6 deletions docker/jmstck.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -xe

# Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2018, 2021 Oracle and/or its affiliates. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -54,11 +54,8 @@ chmod -R 777 $TS_HOME

cd $TS_HOME/bin

if [[ "$JDK" == "JDK11" || "$JDK" == "jdk11" ]];then
export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$PATH
cp ts.jte.jdk11 ts.jte
fi
export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$PATH

which java
java -version
Expand Down
9 changes: 3 additions & 6 deletions docker/jpatck.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -x

# Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2018, 2021 Oracle and/or its affiliates. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -55,11 +55,8 @@ chmod -R 777 $TS_HOME

cd $TS_HOME/bin

if [[ "$JDK" == "JDK11" || "$JDK" == "jdk11" ]];then
export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$PATH
cp ts.jte.jdk11 ts.jte
fi
export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$PATH

which java
java -version
Expand Down
9 changes: 4 additions & 5 deletions docker/jsftck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,10 @@ TS_HOME=$TCK_HOME/$TCK_NAME
echo "TS_HOME $TS_HOME"

cd $TS_HOME/bin
if [[ "$JDK" == "JDK11" || "$JDK" == "jdk11" ]];then
export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$PATH
cp ts.jte.jdk11 ts.jte
fi

export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$PATH


which java
java -version
Expand Down
9 changes: 3 additions & 6 deletions docker/jsonbtck.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -x

# Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2018, 2021 Oracle and/or its affiliates. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -54,11 +54,8 @@ echo "TS_HOME $TS_HOME"
chmod -R 777 $TS_HOME
cd $TS_HOME/bin

if [[ "$JDK" == "JDK11" || "$JDK" == "jdk11" ]];then
export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$PATH
cp ts.jte.jdk11 ts.jte
fi
export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$PATH

which java
java -version
Expand Down
7 changes: 2 additions & 5 deletions docker/jsonptck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,8 @@ echo "TS_HOME $TS_HOME"
chmod -R 777 $TS_HOME
cd $TS_HOME/bin

if [[ "$JDK" == "JDK11" || "$JDK" == "jdk11" ]];then
export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$PATH
cp ts.jte.jdk11 ts.jte
fi
export JAVA_HOME=${JDK11_HOME}
export PATH=$JAVA_HOME/bin:$PATH

which java
java -version
Expand Down

0 comments on commit aa2b698

Please sign in to comment.