--- a/java/sql-dk/src/info/globalcode/sql/dk/Constants.java Sun Dec 22 21:02:37 2013 +0100
+++ b/java/sql-dk/src/info/globalcode/sql/dk/Constants.java Sun Dec 22 22:02:44 2013 +0100
@@ -17,6 +17,8 @@
*/
package info.globalcode.sql.dk;
+import java.io.File;
+
/**
*
* @author Ing. František Kučera (frantovo.cz)
@@ -27,6 +29,13 @@
public static final String LICENSE_FILE = "info/globalcode/sql/dk/license.txt";
public static final String VERSION_FILE = "info/globalcode/sql/dk/version.txt";
public static final String HELP_FILE = "info/globalcode/sql/dk/help.txt";
+ private static final File HOME_DIR = new File(System.getProperty("user.home"));
+ /**
+ * Directory where config and log files are stored.
+ */
+ public static final File DIR = new File(HOME_DIR, ".sql-dk");
+ public static final File CONFIG_FILE = new File(DIR, "config.xml");
+ public static final String EXAMPLE_CONFIG_FILE = "info/globalcode/sql/dk/example-config.xml";
private Constants() {
}