Skip to content

Commit

Permalink
add camunda and java exports
Browse files Browse the repository at this point in the history
  • Loading branch information
voxparcxls committed Feb 20, 2024
1 parent 343d5e9 commit 1493b65
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
13 changes: 10 additions & 3 deletions cws-installer/src/main/java/jpl/cws/task/CwsInstaller.java
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ public static void main(String args[]) {
}

getVersion();
getCamundaVersion();
getJavaVersion();
getOsName();
getTotalPhysicalMemory();
checkCompiler();
Expand Down Expand Up @@ -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) {
Expand All @@ -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");
}
Expand Down
1 change: 1 addition & 0 deletions utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit 1493b65

Please sign in to comment.