From b83cc09fe3b2651134c0dfae4155e591a11e2bca Mon Sep 17 00:00:00 2001 From: sepi Date: Mon, 24 Oct 2016 18:28:38 +0300 Subject: [PATCH 1/2] Wdm property file name parameter added --- src/main/java/io/github/bonigarcia/wdm/WdmConfig.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/github/bonigarcia/wdm/WdmConfig.java b/src/main/java/io/github/bonigarcia/wdm/WdmConfig.java index 9f6782b74..f3b829a9e 100644 --- a/src/main/java/io/github/bonigarcia/wdm/WdmConfig.java +++ b/src/main/java/io/github/bonigarcia/wdm/WdmConfig.java @@ -31,8 +31,10 @@ public class WdmConfig { private static WdmConfig instance; private Config conf; + public static final String propertyFileName = System.getProperty("wdm.prop.file","application.properties"); + protected WdmConfig() { - conf = ConfigFactory.load(); + conf = ConfigFactory.load(propertyFileName); } public static synchronized WdmConfig getInstance() { From 3138badd1aa231eb34d39951ea0fdae0e6c2117d Mon Sep 17 00:00:00 2001 From: sepi Date: Mon, 24 Oct 2016 18:32:13 +0300 Subject: [PATCH 2/2] Wdm property file name parameter added --- src/main/java/io/github/bonigarcia/wdm/WdmConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/bonigarcia/wdm/WdmConfig.java b/src/main/java/io/github/bonigarcia/wdm/WdmConfig.java index f3b829a9e..70c05efbf 100644 --- a/src/main/java/io/github/bonigarcia/wdm/WdmConfig.java +++ b/src/main/java/io/github/bonigarcia/wdm/WdmConfig.java @@ -31,7 +31,7 @@ public class WdmConfig { private static WdmConfig instance; private Config conf; - public static final String propertyFileName = System.getProperty("wdm.prop.file","application.properties"); + public static final String propertyFileName = System.getProperty("wdm.prop.filename","application.properties"); protected WdmConfig() { conf = ConfigFactory.load(propertyFileName);