repos init.
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
package com.serliunx.ddns.constant;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
/**
|
||||
* 系统常量
|
||||
* @author SerLiunx
|
||||
* @since 1.0
|
||||
*/
|
||||
public final class SystemConstants {
|
||||
|
||||
private SystemConstants(){throw new UnsupportedOperationException();}
|
||||
|
||||
/**
|
||||
* 保存实例的文件夹
|
||||
*/
|
||||
public static final String INSTANCE_FOLDER_NAME = "instances";
|
||||
|
||||
/**
|
||||
* 运行目录
|
||||
*/
|
||||
public static final String USER_DIR = System.getProperty("user.dir");
|
||||
|
||||
/**
|
||||
* JSON文件后缀
|
||||
*/
|
||||
public static final String JSON_FILE = ".json";
|
||||
|
||||
/**
|
||||
* XML文件后缀
|
||||
*/
|
||||
public static final String XML_FILE = ".xml";
|
||||
|
||||
/**
|
||||
* YML文件后缀
|
||||
*/
|
||||
public static final String YML = ".yml";
|
||||
|
||||
/**
|
||||
* properties配置文件名称
|
||||
*/
|
||||
public static final String PROPERTIES_FILE = "settings.properties";
|
||||
|
||||
/**
|
||||
* sqlite
|
||||
*/
|
||||
public static final String DATABASE_SQLITE = "sqlite";
|
||||
|
||||
/**
|
||||
* XML格式的实例文件根元素名称
|
||||
*/
|
||||
public static final String XML_ROOT_INSTANCE_NAME = "instance";
|
||||
|
||||
/**
|
||||
* 实例类型字段名
|
||||
*/
|
||||
public final static String TYPE_FIELD = "type";
|
||||
|
||||
/**
|
||||
* 用户目录下的实例存放位置
|
||||
*/
|
||||
public static final String USER_INSTANCE_DIR = USER_DIR + File.separator + INSTANCE_FOLDER_NAME;
|
||||
|
||||
/**
|
||||
* 用户目录下的.properties配置文件
|
||||
*/
|
||||
public static final String USER_SETTINGS_PROPERTIES_PATH = USER_DIR + File.separator + PROPERTIES_FILE;
|
||||
}
|
||||
Reference in New Issue
Block a user