Reading properties from the environment variables
@@ -180,9 +180,13 @@ public class ApplicationSettings {
}
public String getSettingImpl(String key) throws ApplicationSettingsException{
- String rawValue=null;
+ String rawValue;
if (System.getProperties().containsKey(key)) {
rawValue = System.getProperties().getProperty(key);
+
+ } else if (System.getenv().containsKey(key)) {
+ rawValue = System.getenv().get(key);
+
} else {
validateSuccessfulPropertyFileLoad();
if (properties.containsKey(key)){
