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