private static void updateFrameworkProperties(final Map<String, String> frameworkProps, final String key, final String value) { if (frameworkProps.containsKey(key)) { if (isListValuedProperty(key)) { // TODO should validate that different values don't conflict final String oldValue = frameworkProps.get(key); final String newValue = oldValue + " " + value; log.debug("Merging property {} = {}", key, newValue); frameworkProps.put(key, newValue); } else { log.warn("The property {} has been set multiple times.", key); frameworkProps.put(key, value); } } else { frameworkProps.put(key, value); } }
private static void updateFrameworkProperties(final Map<String, String> frameworkProps, final String key, final String value) { if (frameworkProps.containsKey(key)) { if (isListValuedProperty(key)) { // TODO should validate that different values don't conflict final String oldValue = frameworkProps.get(key); final String newValue = oldValue + " " + value; log.debug("Merging property {} = {}", key, newValue); frameworkProps.put(key, newValue); } else { log.warn("The property {} has been set multiple times.", key); frameworkProps.put(key, value); } } else { frameworkProps.put(key, value); } }