Skip to content

Conversation

jmac1978
Copy link

Howdy Brett,

I have changed the getHomeDir() method in AppConfig class slightly as it didn't work cleanly on Windows so I have introduced a config property that can deliberately set the home folder and then check for this first before falling back to checking the existing properties/env variables it currently checks.

I have also changed H2DBBackup class slightly to also look for a config property to specify the backup folder before it defaults to a backup subfolder in the home folder, I have also included the app name in the backup filename if one is set, otherwise, it defaults to the current naming convention of app-db-backup.

EDIT:
This is a second attempt as I have changed the getPath() call to getString() on the first property check for getHomeDir() as the app was bombing if the property didn't exist (NullPointerException) and I couldn't figure out why. Swapping methods solved the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant