public static Map<String, String> loadProperties() throws IOException { Map<String, String> result = new TreeMap<>(); String configFile = System.getProperty("config"); if (configFile != null) { result.putAll(loadPropertiesFrom(configFile)); } result.putAll(getSystemProperties()); return ImmutableSortedMap.copyOf(result); }
public static Map<String, String> loadProperties() throws IOException { Map<String, String> result = new TreeMap<>(); String configFile = System.getProperty("config"); if (configFile != null) { result.putAll(loadPropertiesFrom(configFile)); } result.putAll(getSystemProperties()); return ImmutableSortedMap.copyOf(result); }
public Map<String, String> loadProperties() throws IOException { Map<String, String> result = Maps.newTreeMap(); String configFile = System.getProperty("config"); if (configFile != null) { result.putAll(loadPropertiesFrom(configFile)); } result.putAll(getSystemProperties()); return ImmutableSortedMap.copyOf(result); }
String configFile = System.getProperty("config"); if (configFile != null) { requiredProperties = loader.loadPropertiesFrom(configFile);
String configFile = System.getProperty("config"); if (configFile != null) { requiredProperties = loadPropertiesFrom(configFile);
String configFile = System.getProperty("config"); if (configFile != null) { requiredProperties = loadPropertiesFrom(configFile);