Add version matching code for JDK 9
authorSven Hoexter <sven@stormbind.net>
Sun, 26 Nov 2017 09:20:07 +0000 (10:20 +0100)
committerSven Hoexter <sven@stormbind.net>
Sun, 26 Nov 2017 09:20:07 +0000 (10:20 +0100)
lib/oracle-jdk.sh

index 23ce971..9dc235a 100644 (file)
@@ -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