Subversion Repositories SmartDukaan

Rev

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

Rev 6503 Rev 6983
Line 66... Line 66...
66
    static{
66
    static{
67
    	File resourceBaseDir = new File("/tmp/emi-resource/");
67
    	File resourceBaseDir = new File("/tmp/emi-resource/");
68
    	if(!resourceBaseDir.exists()){
68
    	if(!resourceBaseDir.exists()){
69
    		resourceBaseDir.mkdir();
69
    		resourceBaseDir.mkdir();
70
		}
70
		}
71
    	int []  gatewayIds = {5,10,11,12};
71
    	int []  gatewayIds = {5,10,11,12,14};
72
    	for(int gatewayId: gatewayIds){
72
    	for(int gatewayId: gatewayIds){
73
    		String resourceDirPath = "/tmp/emi-resource/" + gatewayId + "/";
73
    		String resourceDirPath = "/tmp/emi-resource/" + gatewayId + "/";
74
	        try {
74
	        try {
75
				InputStream inputStream = Class.class.getResourceAsStream(ConfigClient.getClient().get("emi_payment_resource_file_path") + gatewayId + File.separator + resourceFileName);
75
				InputStream inputStream = Class.class.getResourceAsStream(ConfigClient.getClient().get("emi_payment_resource_file_path") + gatewayId + File.separator + resourceFileName);
76
				File resourceDir = new File(resourceDirPath);
76
				File resourceDir = new File(resourceDirPath);