From 2068a099372698c2efeca2da25b5d5ffbb457632 Mon Sep 17 00:00:00 2001 From: Robert Goldmann <deadlocker@gmx.de> Date: Sat, 8 Dec 2018 10:53:13 +0100 Subject: [PATCH] Fixed #374 - missing settings file warning format --- src/main/java/de/deadlocker8/budgetmaster/Main.java | 2 +- .../budgetmaster/utils/PropertiesConfiguration.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/deadlocker8/budgetmaster/Main.java b/src/main/java/de/deadlocker8/budgetmaster/Main.java index c937115a1..56388735a 100644 --- a/src/main/java/de/deadlocker8/budgetmaster/Main.java +++ b/src/main/java/de/deadlocker8/budgetmaster/Main.java @@ -59,7 +59,7 @@ public class Main implements ApplicationRunner { try { - LOGGER.warn("BudgetMaster settings file ({0}) is missing. A default file will be created. Please fill in your settings.", settingsPath); + LOGGER.warn("BudgetMaster settings file ({}) is missing. A default file will be created. Please fill in your settings.", settingsPath); Files.copy(Main.class.getClassLoader().getResourceAsStream("config/templates/settings.properties"), settingsPath, StandardCopyOption.REPLACE_EXISTING); System.exit(1); } diff --git a/src/main/java/de/deadlocker8/budgetmaster/utils/PropertiesConfiguration.java b/src/main/java/de/deadlocker8/budgetmaster/utils/PropertiesConfiguration.java index 52910f40f..17e72af4f 100644 --- a/src/main/java/de/deadlocker8/budgetmaster/utils/PropertiesConfiguration.java +++ b/src/main/java/de/deadlocker8/budgetmaster/utils/PropertiesConfiguration.java @@ -13,7 +13,8 @@ import java.nio.file.Path; public class PropertiesConfiguration { @Bean - public PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() { + public PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() + { PropertySourcesPlaceholderConfigurer properties = new PropertySourcesPlaceholderConfigurer(); Path settingsPath = SystemUtils.getApplicationSupportDirectoryPath(Localization.getString("folder"), "settings.properties"); properties.setLocation(new FileSystemResource(settingsPath.toString())); -- GitLab