From 0152b7265af893ceb5107a85cfba32185e244036 Mon Sep 17 00:00:00 2001 From: Sven Hoexter Date: Sun, 26 Nov 2017 10:20:07 +0100 Subject: [PATCH] Add version matching code for JDK 9 --- lib/oracle-jdk.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/oracle-jdk.sh b/lib/oracle-jdk.sh index 23ce971..9dc235a 100644 --- a/lib/oracle-jdk.sh +++ b/lib/oracle-jdk.sh @@ -3,6 +3,16 @@ j2se_detect_oracle_j2sdk=oracle_j2sdk_detect oracle_j2sdk_detect() { j2se_release=0 + # JDK 9 GA release (jdk-9.0.1_linux-x64_bin.tar.gz) + if [[ $archive_name =~ jdk-9(\.([0-9]+)\.([0-9]+))?_linux-x64_bin\.tar\.gz ]] + then + j2se_release=9 + j2se_update=${BASH_REMATCH[1]:-.0.0} + j2se_arch=x64 + j2se_version_name="${j2se_release} version ${j2se_release}${j2se_update}" + j2se_version=${j2se_relase}${j2se_update}${revision} + fi + # Update or GA release (jdk-7u15-linux-i586.tar.gz) if [[ $archive_name =~ jdk-([0-9]+)(u([0-9]+))?-linux-(i586|x64|amd64|arm-vfp-hflt)\.(bin|tar\.gz) ]] then -- 2.39.5