// Init default values:
// Default database backend
BaseFrameworkSystem.properties.put("org.mxchange.database.backend.class", "org.mxchange.jcore.database.backend.base64.Base64CsvDatabaseBackend"); //NOI18N
+ BaseFrameworkSystem.properties.put("database.backend.storagepath", "data");
// For MySQL backend
BaseFrameworkSystem.properties.put("org.mxchange.database.mysql.host", "localhost"); //NOI18N
// Init array
String[] names = {
"database.backend.class",
+ "database.backend.storagepath",
"database.mysql.login",
"database.mysql.host",
"database.mysql.password",
this.setFrontend(frontend);
// Construct file name
- String fileName = String.format("data/table_%s.b64", tableName); //NOI18N
+ String fileName = String.format("%s/table_%s.b64", this.getProperty("database.backend.storagepath"), tableName); //NOI18N
// Debug message
this.getLogger().debug(MessageFormat.format("Trying to open file {0} ...", fileName)); //NOI18N