15 * You should have received a copy of the GNU General Public License |
15 * You should have received a copy of the GNU General Public License |
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 */ |
17 */ |
18 package info.globalcode.sql.dk; |
18 package info.globalcode.sql.dk; |
19 |
19 |
|
20 import java.io.File; |
|
21 |
20 /** |
22 /** |
21 * |
23 * |
22 * @author Ing. František Kučera (frantovo.cz) |
24 * @author Ing. František Kučera (frantovo.cz) |
23 */ |
25 */ |
24 public class Constants { |
26 public class Constants { |
25 |
27 |
26 public static final String WEBSITE = "https://sql-dk.globalcode.info/"; |
28 public static final String WEBSITE = "https://sql-dk.globalcode.info/"; |
27 public static final String LICENSE_FILE = "info/globalcode/sql/dk/license.txt"; |
29 public static final String LICENSE_FILE = "info/globalcode/sql/dk/license.txt"; |
28 public static final String VERSION_FILE = "info/globalcode/sql/dk/version.txt"; |
30 public static final String VERSION_FILE = "info/globalcode/sql/dk/version.txt"; |
29 public static final String HELP_FILE = "info/globalcode/sql/dk/help.txt"; |
31 public static final String HELP_FILE = "info/globalcode/sql/dk/help.txt"; |
|
32 private static final File HOME_DIR = new File(System.getProperty("user.home")); |
|
33 /** |
|
34 * Directory where config and log files are stored. |
|
35 */ |
|
36 public static final File DIR = new File(HOME_DIR, ".sql-dk"); |
|
37 public static final File CONFIG_FILE = new File(DIR, "config.xml"); |
|
38 public static final String EXAMPLE_CONFIG_FILE = "info/globalcode/sql/dk/example-config.xml"; |
30 |
39 |
31 private Constants() { |
40 private Constants() { |
32 } |
41 } |
33 } |
42 } |