Merge pull request #78 from fhirbox/master
Allow properties with a default value to be overridden by an environm…
This commit is contained in:
@@ -178,15 +178,11 @@ public class HapiProperties {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static String getProperty(String propertyName, String defaultValue) {
|
private static String getProperty(String propertyName, String defaultValue) {
|
||||||
Properties properties = HapiProperties.getProperties();
|
String value = getProperty(propertyName);
|
||||||
|
|
||||||
if (properties != null) {
|
|
||||||
String value = properties.getProperty(propertyName);
|
|
||||||
|
|
||||||
if (value != null && value.length() > 0) {
|
if (value != null && value.length() > 0) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return defaultValue;
|
return defaultValue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user