From 1493b65cc373357ae98a98864e70f8995f3a6d70 Mon Sep 17 00:00:00 2001 From: Josh Date: Tue, 20 Feb 2024 01:38:49 -0800 Subject: [PATCH] add camunda and java exports --- .../src/main/java/jpl/cws/task/CwsInstaller.java | 13 ++++++++++--- utils.sh | 1 + 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/cws-installer/src/main/java/jpl/cws/task/CwsInstaller.java b/cws-installer/src/main/java/jpl/cws/task/CwsInstaller.java index 7a377a19..5ae939f1 100755 --- a/cws-installer/src/main/java/jpl/cws/task/CwsInstaller.java +++ b/cws-installer/src/main/java/jpl/cws/task/CwsInstaller.java @@ -265,6 +265,8 @@ public static void main(String args[]) { } getVersion(); + getCamundaVersion(); + getJavaVersion(); getOsName(); getTotalPhysicalMemory(); checkCompiler(); @@ -374,9 +376,6 @@ private static void init() { ldap_identity_plugin_class = getPreset(LDAP_IDENTITY_PLUGIN_CLASS); ldap_security_filter_class = getPreset(LDAP_SECURITY_FILTER_CLASS); camunda_security_filter_class = getPreset(CAMUNDA_SECURITY_FILTER_CLASS); - camunda_version = getPreset("camunda_version"); - - java_version = getPreset("java_version"); } private static void exit(int status) { @@ -387,6 +386,14 @@ private static void getVersion() { cws_version = getenv("CWS_VER"); } + private static void getCamundaVersion() { + camunda_version = getenv("CAMUNDA_VER"); + } + + private static void getJavaVersion() { + java_version = getenv("JAVA_HOME_VERSION"); + } + private static void getOsName() { osName = getProperty("os.name"); } diff --git a/utils.sh b/utils.sh index 5d577364..0f4d9cc4 100755 --- a/utils.sh +++ b/utils.sh @@ -140,6 +140,7 @@ function check_java_requirements () { JAVA_HOME_VERSION=$("${JAVA_HOME}/bin/java" -version 2>&1 | awk -F '"' '/version/ {print $2}') print " JAVA_HOME Java version : ${JAVA_HOME_VERSION}" + export JAVA_HOME_VERSION JAVA_PATH_VERSION=$(java -version 2>&1 | awk -F '"' '/version/ {print $2}') print " PATH Java version : ${JAVA_PATH_VERSION} $(which java)"