Issue: RELENG-2202
Change-Id: Ib2a53613bfb3b6f1ee388d2f621356b1cefb185e
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
--- /dev/null
+---
+features:
+ - |
+ Enable JAVA_HOME to point to openjdk12 install path for CentOS 7.
update-java-redhat() {
if [[ "${SET_JDK_VERSION//[a-zA-Z]/}" = "11" ]]; then
export JAVA_HOME="/usr/lib/jvm/java-11-openjdk"
+ elif [[ "${SET_JDK_VERSION//[a-zA-Z]/}" = "12" ]]; then
+ export JAVA_HOME="/usr/lib/jvm/java-12-openjdk"
else
export JAVA_HOME="/usr/lib/jvm/java-1.${SET_JDK_VERSION//[a-zA-Z:-]/}.0-openjdk"
fi