diff --git a/.gitignore b/.gitignore index ed20917..a147e3f 100644 --- a/.gitignore +++ b/.gitignore @@ -69,4 +69,5 @@ buildNumber.properties # Created by .ignore support plugin (hsz.mobi) -settings.cfg \ No newline at end of file +settings.cfg +testdb.* \ No newline at end of file diff --git a/src/main/java/musicplayer/ConfigManager.java b/src/main/java/musicplayer/ConfigManager.java index b7e2a62..cec5730 100644 --- a/src/main/java/musicplayer/ConfigManager.java +++ b/src/main/java/musicplayer/ConfigManager.java @@ -45,7 +45,7 @@ public final class ConfigManager { try (FileInputStream inputStream = new FileInputStream(propertiesFile)) { librarySettings.load(inputStream); if (librarySettings.containsKey(databaseKey)) { - return "jdbc:hsqldb:file:" + librarySettings.getProperty(databaseKey) + ";shutdown=true"; + return "jdbc:hsqldb:file:" + new File(librarySettings.getProperty(databaseKey)).getAbsolutePath() + ";shutdown=true"; } } catch (IOException ignored) { }