Rev 1720 |
Details |
Compare with Previous |
Last modification |
View Log
| RSS feed
| Rev |
Author |
Line No. |
Line |
| 1720 |
varun.gupt |
1 |
package in.shop2020.social.utils;
|
|
|
2 |
|
|
|
3 |
import in.shop2020.config.ConfigException;
|
|
|
4 |
import in.shop2020.thrift.clients.config.ConfigClient;
|
|
|
5 |
|
|
|
6 |
public class Utils {
|
|
|
7 |
public static final String EXPORT_ENTITIES_PATH = getExportPath();
|
|
|
8 |
|
|
|
9 |
private static String getExportPath(){
|
|
|
10 |
String exportPath=null;
|
|
|
11 |
ConfigClient client = ConfigClient.getClient();
|
|
|
12 |
try{
|
|
|
13 |
exportPath = client.get("export_entities_path");
|
|
|
14 |
}catch(ConfigException ce){
|
|
|
15 |
ce.printStackTrace();
|
|
|
16 |
exportPath = "/var/lib/tomcat6/webapps/export/html/entities/";
|
|
|
17 |
}
|
|
|
18 |
return exportPath;
|
|
|
19 |
}
|
|
|
20 |
}
|