Subversion Repositories SmartDukaan

Rev

Rev 1455 | Rev 1461 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1455 Rev 1457
Line 32... Line 32...
32
	private static Logger log = Logger.getLogger(Utils.class);
32
	private static Logger log = Logger.getLogger(Utils.class);
33
	
33
	
34
	public static final String EXPORT_ENTITIES_PATH = getExportPath();
34
	public static final String EXPORT_ENTITIES_PATH = getExportPath();
35
	
35
	
36
	private static String getExportPath(){
36
	private static String getExportPath(){
37
		String exportPath;
37
		String exportPath=null;
38
		ConfigClient client = ConfigClient.getClient();
38
		ConfigClient client = ConfigClient.getClient();
39
		try{
39
		try{
40
			exportPath = client.get("export_entities_path");
40
			exportPath = client.get("export_entities_path");
41
		}catch(ConfigException ce){
41
		}catch(ConfigException ce){
42
			ce.printStackTrace();
42
			ce.printStackTrace();
43
			exportPath = "/var/lib/tomcat6/webapps/export/html/entities/";
43
			//exportPath = "/var/lib/tomcat6/webapps/export/html/entities/";
44
		}
44
		}
45
		return exportPath;
45
		return exportPath;
46
	}
46
	}
47
	
47
	
48
	public static double getItemPrice(long itemId){
48
	public static double getItemPrice(long itemId){