Skip to content

Commit

Permalink
Merge pull request #73 from SergeyPirogov/master
Browse files Browse the repository at this point in the history
Custom property file name
  • Loading branch information
bonigarcia authored Oct 25, 2016
2 parents 30cf7ff + 3138bad commit 4761b68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/io/github/bonigarcia/wdm/WdmConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ public class WdmConfig {
private static WdmConfig instance;
private Config conf;

public static final String propertyFileName = System.getProperty("wdm.prop.filename","application.properties");

protected WdmConfig() {
conf = ConfigFactory.load();
conf = ConfigFactory.load(propertyFileName);
}

public static synchronized WdmConfig getInstance() {
Expand Down

0 comments on commit 4761b68

Please sign in to comment.