Subversion Repositories SmartDukaan

Rev

Rev 326 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 326 Rev 341
Line 18... Line 18...
18
	
18
	
19
		
19
		
20
		
20
		
21
	public static String CONTENT_DB_PATH, DEFINITIONS_DB_PATH, MEDIA_DB_PATH, ENTITIES_DB_PATH, COMPARISONS_DB_PATH;
21
	public static String CONTENT_DB_PATH, DEFINITIONS_DB_PATH, MEDIA_DB_PATH, ENTITIES_DB_PATH, COMPARISONS_DB_PATH;
22
	public static String currentDir = System.getProperty("user.dir");
22
	public static String currentDir = System.getProperty("user.dir");
23
	
-
 
24
	static{
-
 
25
 
23
 
26
		ConfigClient configClient = ConfigClient.getClient();
24
	static{
27
		
25
		
28
		try {  
26
		try {
-
 
27
			
-
 
28
			ConfigClient configClient = ConfigClient.getClient();
29
			/**
29
			/**
30
			 * Path to DB... will have lot of references
30
			 * Path to DB... will have lot of references
31
			 */
31
			 */
32
			CONTENT_DB_PATH = configClient.get("CONTENT_DB_PATH");
32
			CONTENT_DB_PATH = configClient.get("CONTENT_DB_PATH");
33
			MEDIA_DB_PATH = configClient.get("MEDIA_DB_PATH");
33
			MEDIA_DB_PATH = configClient.get("MEDIA_DB_PATH");
34
			DEFINITIONS_DB_PATH = configClient.get("DEFINITIONS_DB_PATH");
34
			DEFINITIONS_DB_PATH = configClient.get("DEFINITIONS_DB_PATH");
35
			ENTITIES_DB_PATH = configClient.get("ENTITIES_DB_PATH");
35
			ENTITIES_DB_PATH = configClient.get("ENTITIES_DB_PATH");
36
			COMPARISONS_DB_PATH = configClient.get("COMPARISIONS_DB_PATH");
36
			COMPARISONS_DB_PATH = configClient.get("COMPARISONS_DB_PATH");
37
			
37
			
38
		}catch(ConfigException ex){
38
		}catch(ConfigException ex){
39
			ex.printStackTrace();
39
			ex.printStackTrace();
40
			CONTENT_DB_PATH = "/var/lib/tomcat6/webapps/db/entities/";
40
			CONTENT_DB_PATH = "/var/lib/tomcat6/webapps/db/entities/";
41
			MEDIA_DB_PATH =	"/var/lib/tomcat6/webapps/db/media/";
41
			MEDIA_DB_PATH =	"/var/lib/tomcat6/webapps/db/media/";
42
			DEFINITIONS_DB_PATH =	"/var/lib/tomcat6/webapps/db/definitions/";
42
			DEFINITIONS_DB_PATH =	"/var/lib/tomcat6/webapps/db/definitions/";
43
			ENTITIES_DB_PATH =  "/var/lib/tomcat6/webapps/db/entities/";
43
			ENTITIES_DB_PATH =  "/var/lib/tomcat6/webapps/db/entities/";
44
			COMPARISONS_DB_PATH = "/var/lib/tomcat6/webapps/db/comparisons/";
44
			COMPARISONS_DB_PATH = "/var/lib/tomcat6/webapps/db/comparisons/";
45
			}
45
			}
-
 
46
 
46
		}
47
		}
47
	
48
	
48
	
-
 
49
	//Next some paths are somewhat hardcoded need to check when gets time. But they will be used only first time and in utility classes.
49
	//Next some paths are somewhat hardcoded need to check when gets time. But they will be used only first time and in utility classes.
50
	/**
50
	/**
51
	 * Path to XML definitions
51
	 * Path to XML definitions
52
	 */
52
	 */
53
	public static final String DEFINITIONS_SRC_PATH = currentDir +  "/src/xml/model/";
53
	public static final String DEFINITIONS_SRC_PATH = currentDir +  "/src/xml/model/";
Line 66... Line 66...
66
	public static final String EXPORT_ENTITIES_PATH =	currentDir + "/export/html/entities/";
66
	public static final String EXPORT_ENTITIES_PATH =	currentDir + "/export/html/entities/";
67
	public static final String EXPORT_DEFINITIONS_PATH =	currentDir + "/export/html/definitions/";
67
	public static final String EXPORT_DEFINITIONS_PATH =	currentDir + "/export/html/definitions/";
68
	public static final String EXPORT_CATEGORY_HOMES_PATH = currentDir + "/export/html/category_homes/";
68
	public static final String EXPORT_CATEGORY_HOMES_PATH = currentDir + "/export/html/category_homes/";
69
	public static final String EXPORT_DIFF_PATH =	currentDir + "/export/html/diff/";
69
	public static final String EXPORT_DIFF_PATH =	currentDir + "/export/html/diff/";
70
	
70
	
-
 
71
	public static final String EXPORT_SOLR_PATH = currentDir + "/export/solr/";
71
	
72
		
72
	public static String VTL_SRC_PATH = "src/velocity/";
73
	public static String VTL_SRC_PATH = "src/velocity/";
73
	
74
	
74
	/**
75
	/**
75
	 * Jython source path
76
	 * Jython source path
76
	 */
77
	 */