private final String dbDirPath;
private final File dbDir;
- private final String logsDirPath;
+
private final File logsDir;
+
private final String imagesDirPath;
private final File imagesDir;
+
private final String qssDirPath;
private final File qssDir;
+
private final String resDirPath;
private final File resDir;
- private final String xmlDirPath;
+
private final File xmlDir;
/**
xmlDir = new File(homeDir, "xml");
checkExistingReadableDir(xmlDir);
- xmlDirPath = slashTerminatePath(xmlDir.getPath());
// Read-write
dbDir = new File(homeDir, "db");
logsDir = new File(homeDir, "logs");
createDirOrCheckWriteable(logsDir);
- logsDirPath = slashTerminatePath(logsDir.getPath());
resDir = new File(homeDir, "res");
createDirOrCheckWriteable(resDir);
}
/**
- * Get the path to the base installation directory, terminated with {@link File#separator}.
- * This will contain backslashes on Windows.
- */
- public String getHomeDirPath() {
- return homeDirPath;
- }
-
- /**
- * Get a file below the 'db' directory.
- */
- public File getDbDirFile(String relativePath) {
- return new File(dbDir, toPlatformPathSeparator(relativePath));
- }
-
- /**
* Get a file below the base installation directory.
*/
public File getHomeDirFile(String relativePath) {
}
/**
+ * Get a file below the 'db' directory.
+ */
+ public File getDbDirFile(String relativePath) {
+ return new File(dbDir, toPlatformPathSeparator(relativePath));
+ }
+
+ /**
* Get a path below the 'db' directory, using native {@link File#separator}.
* This will contain backslashes on Windows.
*/