|
|
@ -33,6 +33,7 @@ public class Configuration { |
|
|
|
public Configuration load(File file) { |
|
|
|
public Configuration load(File file) { |
|
|
|
this.file = file; |
|
|
|
this.file = file; |
|
|
|
if (file.exists()) try { |
|
|
|
if (file.exists()) try { |
|
|
|
|
|
|
|
LOG.info("Loading configuration from {}",file); |
|
|
|
var newVals = (JSONObject) new JSONParser().parse(Files.readString(file.toPath())); |
|
|
|
var newVals = (JSONObject) new JSONParser().parse(Files.readString(file.toPath())); |
|
|
|
data.putAll(newVals); |
|
|
|
data.putAll(newVals); |
|
|
|
} catch (ParseException | IOException e){ |
|
|
|
} catch (ParseException | IOException e){ |
|
|
|