01: /*
02: * JFox - The most lightweight Java EE Application Server!
03: * more details please visit http://www.huihoo.org/jfox or http://www.jfox.org.cn.
04: *
05: * JFox is licenced and re-distributable under GNU LGPL.
06: */
07: package org.jfox.framework;
08:
09: /**
10: * @author <a href="mailto:jfox.young@gmail.com">Young Yang</a>
11: */
12: public class Constants {
13: public static final String VERSION = "3.1";
14: public static final String DEFAULT_FRAMEOWKR_HOME = ".";
15: public static final String FRAMEOWKR_HOME_KEY = "FRAMEWORK_HOME";
16:
17: public static final String COMMON_LIB_PATH = "common";
18:
19: /**
20: * 模�所在的目录
21: */
22: public static final String DEFAULT_MODULE_DIR = "MODULES";
23: public static final String MODULE_DIR_KEY = "MOUDULE_DIR";
24:
25: public static final String MODULE_CONFIG_DIR = "conf";
26: public static final String MODULE_CONFIG_FILENAME = "module.xml";
27: public static final String MOUDULE_CLASS_OUTPUT_PATH = "classes";
28: public static final String MOUDULE_CLASS_WEB_OUTPUT_PATH = "WEB-INF/classes";
29: public static final String MOUDULE_CLASS_WEB_LIB = "WEB-INF/lib";
30:
31: public static final String GLOBAL_PROPERTIES = "global.properties";
32:
33: public static String getCommonLibPath() {
34: String home = System.getProperty(FRAMEOWKR_HOME_KEY,
35: DEFAULT_FRAMEOWKR_HOME);
36: return home + "/" + COMMON_LIB_PATH;
37: }
38:
39: public static void main(String[] args) {
40:
41: }
42: }
|