diff --git a/ci/ci.sh b/ci/ci.sh index 387bc048..5ccb3408 100755 --- a/ci/ci.sh +++ b/ci/ci.sh @@ -122,6 +122,9 @@ default_cws_auth_scheme=CAMUNDA default_history_level=full default_shutdown_port=38005 metrics_publishing_interval=10 +camunda_version=${CAMUNDA_VER} +java_version=JAVA_HOME_VERSION +java_home=${JAVA_HOME} EOF @@ -180,6 +183,9 @@ aws_cloudwatch_endpoint=monitoring.us-west-1.amazonaws.com default_history_level=full default_shutdown_port=38005 metrics_publishing_interval=10 +camunda_version=${CAMUNDA_VER} +java_version=JAVA_HOME_VERSION +java_home=${JAVA_HOME} EOF diff --git a/cws-installer/src/main/java/jpl/cws/task/CwsInstaller.java b/cws-installer/src/main/java/jpl/cws/task/CwsInstaller.java old mode 100644 new mode 100755 index f9148eb9..427756e0 --- a/cws-installer/src/main/java/jpl/cws/task/CwsInstaller.java +++ b/cws-installer/src/main/java/jpl/cws/task/CwsInstaller.java @@ -212,6 +212,11 @@ public class CwsInstaller { private static String aws_sqs_dispatcher_sqsUrl; private static String aws_sqs_dispatcher_msgFetchLimit; + private static String camunda_version; + + private static String java_version; + private static String java_home = System.getenv("JAVA_HOME"); + private static Boolean reconfigure = false; @@ -344,6 +349,9 @@ 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) { @@ -2842,6 +2850,10 @@ private static void updateCwsUiProperties() throws IOException { content = content.replace("__AWS_SQS_DISPATCHER_MSG_FETCH_LIMIT__", aws_sqs_dispatcher_msgFetchLimit); } + content = content.replace("__CWS_CAMUNDA_VERSION__", camunda_version); + content = content.replace("__CWS_JAVA_VERSION__", java_version); + content = content.replace("__CWS_JAVA_HOME__", java_home); + writeToFile(filePath, content); copy( Paths.get(config_work_dir + SEP + "cws-ui" + SEP + "cws-ui.properties"), diff --git a/cws-service/src/main/java/jpl/cws/controller/MvcCore.java b/cws-service/src/main/java/jpl/cws/controller/MvcCore.java old mode 100644 new mode 100755 index 72cd360a..0c246098 --- a/cws-service/src/main/java/jpl/cws/controller/MvcCore.java +++ b/cws-service/src/main/java/jpl/cws/controller/MvcCore.java @@ -40,6 +40,11 @@ public class MvcCore { @Value("${cws.history.days.to.live}") private String historyDaysToLive; @Value("${cws.history.level}") private String historyLevel; + @Value("${cws.camunda.version}") private String camundaVersion; + + @Value("${cws.java.home}") private String javaHome; + @Value("${cws.java.version}") private String javaVersion; + public MvcCore() {} protected ModelAndView buildModel(String page, String message) { @@ -183,7 +188,12 @@ protected ModelAndView buildConfigurationModel(String message) { model.addObject("tomcatWebapps", tomcatWebapps); model.addObject("historyDaysToLive", historyDaysToLive); model.addObject("historyLevel", historyLevel); - + + model.addObject("camundaVersion", camundaVersion); + + model.addObject("javaHome", javaHome); + model.addObject("javaVersion", javaVersion); + DiskUsage diskUsage = cwsConsoleService.getDiskUsage(); model.addObject("databaseSize", diskUsage.databaseSize); diff --git a/install/cws-ui/configuration.ftl b/install/cws-ui/configuration.ftl old mode 100644 new mode 100755 index 19e1cdb9..75a3191e --- a/install/cws-ui/configuration.ftl +++ b/install/cws-ui/configuration.ftl @@ -197,6 +197,11 @@