@Override public Properties getEnvironmentVariables(Platform platform, OptionsByType optionsByType) { Properties properties = super.getEnvironmentVariables(platform, optionsByType); // ----- establish the java home ----- JavaHome javaHome = optionsByType.get(JavaHome.class); if (javaHome != null) { properties.put("JAVA_HOME", javaHome.get()); } return properties; }
String javaHomePath = javaHome.get().trim();