Rev 75 | Blame | Last modification | View Log | RSS feed
/****/package in.shop2020.util;import java.util.logging.Logger;/*** Utility functions and wrappers** @author naveen**/public class Utils {// LOCAL/*** Path to XML definitions*/public static final String DEFINITIONS_SRC_PATH ="/home/naveen/workspace/eclipse/webapp/src/xml/model/";/*** Path to serialized Definition objects*/public static final String DEFINITIONS_DB_PATH ="/home/naveen/workspace/eclipse/db/definitions/";/*** Path to serialized Entity objects*/public static final String ENTITIES_DB_PATH ="/home/naveen/workspace/eclipse/db/entities/";/*** Path to serialized Entity objects*/public static final String COMPARISONS_DB_PATH ="/home/naveen/workspace/eclipse/db/comparisons/";/*** Path to where PPT files will be picked*/public static final String CONTENT_SRC_PPT_PATH ="/home/naveen/workspace/eclipse/content/ppt/";/*** Path where exported HTML files are kept*/public static final String CONTENT_SRC_HTML_PATH ="/home/naveen/workspace/eclipse/content/html/";/*** IR XML export path*/public static String EXPORT_IR_PATH ="/home/naveen/workspace/eclipse/export/ir/";// WEB/**public static final String CONTENT_DB_PATH ="/var/lib/tomcat6/webapps/shop2020/db/entities/";public static final String DEFINITIONS_DB_PATH ="/var/lib/tomcat6/webapps/shop2020/db/definitions/";public static final String ENTITIES_DB_PATH ="/var/lib/tomcat6/webapps/shop2020/db/entities/";*/// Validation tool/**public static final String CONTENT_DB_PATH = "./db/entities/";public static final String DEFINITIONS_DB_PATH = "./db/definitions/";public static final String ENTITIES_DB_PATH = "./db/entities/";public static final String CONTENT_SRC_PPT_PATH = "./ppt/";*//*** Jython source path*/public static String JYTHON_SRC_PATH = "src/jython/";/*** Brand's feature definition, is not referred directly by content models*/public static final long BRAND_FEATURE_DEFINITION_ID = 120080;/*** Brand's facet definition*/public static final long BRAND_FACET_DEFINITION_ID = 50001;/*** Singleton Logger instance*/public static Logger logger = Logger.getLogger(Logger.GLOBAL_LOGGER_NAME);/*** INFO type message** @param obj*/public static void info(Object obj) {System.out.println("INFO: " + obj.toString());}/*** SEVERE type message** @param obj*/public static void severe(Object obj) {System.out.println("SEVERE: " + obj.toString());}/*** MANDATORY type message** @param obj*/public static void warning(Object obj) {System.out.println("WARNING: " + obj.toString());}}