author | František Kučera <franta-hg@frantovo.cz> |
Mon, 29 Sep 2014 10:34:54 +0200 | |
branch | v_0 |
changeset 181 | 80333d0ae763 |
parent 79 | e19a13ed19a9 |
permissions | -rw-r--r-- |
17
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
1 |
/** |
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
2 |
* SQL-DK |
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
3 |
* Copyright © 2013 František Kučera (frantovo.cz) |
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
4 |
* |
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
5 |
* This program is free software: you can redistribute it and/or modify |
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
6 |
* it under the terms of the GNU General Public License as published by |
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
7 |
* the Free Software Foundation, either version 3 of the License, or |
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
8 |
* (at your option) any later version. |
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
9 |
* |
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
10 |
* This program is distributed in the hope that it will be useful, |
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
13 |
* GNU General Public License for more details. |
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
14 |
* |
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License |
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
16 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
17 |
*/ |
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
18 |
package info.globalcode.sql.dk; |
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
19 |
|
33
04db6ccd6c48
configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
30
diff
changeset
|
20 |
import java.io.File; |
04db6ccd6c48
configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
30
diff
changeset
|
21 |
|
17
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
22 |
/** |
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
23 |
* |
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
24 |
* @author Ing. František Kučera (frantovo.cz) |
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
25 |
*/ |
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
26 |
public class Constants { |
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
27 |
|
55 | 28 |
public static final String PROGRAM_NAME = "SQL-DK"; |
29 |
public static final String JAVA_PACKAGE = Constants.class.getPackage().getName(); |
|
17
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
30 |
public static final String WEBSITE = "https://sql-dk.globalcode.info/"; |
18
7900bb1666f6
version info: option --version
František Kučera <franta-hg@frantovo.cz>
parents:
17
diff
changeset
|
31 |
public static final String LICENSE_FILE = "info/globalcode/sql/dk/license.txt"; |
7900bb1666f6
version info: option --version
František Kučera <franta-hg@frantovo.cz>
parents:
17
diff
changeset
|
32 |
public static final String VERSION_FILE = "info/globalcode/sql/dk/version.txt"; |
19
873669135d97
help option: --help – basics
František Kučera <franta-hg@frantovo.cz>
parents:
18
diff
changeset
|
33 |
public static final String HELP_FILE = "info/globalcode/sql/dk/help.txt"; |
33
04db6ccd6c48
configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
30
diff
changeset
|
34 |
private static final File HOME_DIR = new File(System.getProperty("user.home")); |
04db6ccd6c48
configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
30
diff
changeset
|
35 |
/** |
04db6ccd6c48
configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
30
diff
changeset
|
36 |
* Directory where config and log files are stored. |
04db6ccd6c48
configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
30
diff
changeset
|
37 |
*/ |
79
e19a13ed19a9
more bash completion tags
František Kučera <franta-hg@frantovo.cz>
parents:
55
diff
changeset
|
38 |
public static final File DIR = new File(HOME_DIR, ".sql-dk"); // bash-completion:dir |
33
04db6ccd6c48
configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
30
diff
changeset
|
39 |
public static final File CONFIG_FILE = new File(DIR, "config.xml"); |
04db6ccd6c48
configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
30
diff
changeset
|
40 |
public static final String EXAMPLE_CONFIG_FILE = "info/globalcode/sql/dk/example-config.xml"; |
17
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
41 |
|
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
42 |
private Constants() { |
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
43 |
} |
d8ab8aece6f2
license option: --license
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
44 |
} |