Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@ else
fi
fi

if [ ! -e "$JTREG_HOME" ] ; then
ball=jtreg5.1-b01.tar.gz
wget https://ci.adoptopenjdk.net/view/Dependencies/job/dependency_pipeline/lastSuccessfulBuild/artifact/jtreg/$ball
tar -xf $ball
fi

if [ "x$JDK_MAJOR" == "x" ] ; then
JDK_MAJOR=8
if [[ -e "$JAVA/bin/jshell" || -e "$JAVA/bin/jshell.exe" ]] ; then
Expand All @@ -73,6 +67,18 @@ if [ "x$JDK_MAJOR" == "x" ] ; then
fi
echo "treating jdk as: $JDK_MAJOR"

if [ ! -e "$JTREG_HOME" ] ; then
if [ "0$JDK_MAJOR" -le "8" ] ; then
ball=jtreg-6+1.tar.gz
wget "https://github.com/andrlos/jtreg/releases/download/6.1-jtrfix-V01.0/$ball"
else
ball=jtreg-7.3+1.tar.gz
wget "https://ci.adoptopenjdk.net/view/Dependencies/job/dependency_pipeline/lastSuccessfulBuild/artifact/jtreg/$ball"
fi
tar -xf $ball
fi


JAVA_OPTS="";
if [ "0$JDK_MAJOR" -gt 11 ] ; then
JAVA_OPTS="-javaoption:-Djava.security.manager=allow"
Expand Down