Subversion Repositories SmartDukaan

Rev

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

Rev 15643 Rev 15833
Line 1079... Line 1079...
1079
					//mailer.sendSSLMessage(sendTo,"Snapdeal Inventory Updates sent for " +(iterator-1)+" items "+ sdf.format(System.currentTimeMillis()),inventoryChangeItems.toString(), emailFromAddress, password, new ArrayList<File>());
1079
					//mailer.sendSSLMessage(sendTo,"Snapdeal Inventory Updates sent for " +(iterator-1)+" items "+ sdf.format(System.currentTimeMillis()),inventoryChangeItems.toString(), emailFromAddress, password, new ArrayList<File>());
1080
				} catch (Exception e) {
1080
				} catch (Exception e) {
1081
					e.printStackTrace();
1081
					e.printStackTrace();
1082
				}
1082
				}
1083
			}
1083
			}
1084
			try {
-
 
1085
				System.out.println("++++++++++++++++++++++++++++++");
-
 
1086
				System.out.println("Thread Sleeping for 30 minutes");
-
 
1087
				System.out.println("++++++++++++++++++++++++++++++");
-
 
1088
				Thread.sleep(30*60*1000);
-
 
1089
			} catch (InterruptedException e) {
-
 
1090
				e.printStackTrace();
1084
			System.exit(0);
1091
			}
-
 
1092
		}
1085
		}
1093
		else{
1086
		else{
1094
			try {
1087
			try {
1095
				mailer.sendSSLMessage(sendTo,"No changes in Snapdeal inventory to update "+ sdf.format(System.currentTimeMillis()),"No change in Snapdeal Inventory to be updated ", emailFromAddress, password, new ArrayList<File>());
1088
				mailer.sendSSLMessage(sendTo,"No changes in Snapdeal inventory to update "+ sdf.format(System.currentTimeMillis()),"No change in Snapdeal Inventory to be updated ", emailFromAddress, password, new ArrayList<File>());
1096
			} catch (Exception e) {
1089
			} catch (Exception e) {
1097
				e.printStackTrace();
1090
				e.printStackTrace();
1098
			}
1091
			}
1099
			try {
-
 
1100
				System.out.println("++++++++++++++++++++++++++++++");
-
 
1101
				System.out.println("Thread Sleeping for 30 minutes");
-
 
1102
				System.out.println("++++++++++++++++++++++++++++++");
-
 
1103
				Thread.sleep(30*60*1000);
-
 
1104
			} catch (InterruptedException e) {
-
 
1105
				e.printStackTrace();
1092
			System.exit(0);
1106
			}
-
 
1107
		}
1093
		}
1108
		String tableHeader = "<tr>" 
1094
		String tableHeader = "<tr>" 
1109
			+ "<td>" + "Product Name" +"</td>"
1095
			+ "<td>" + "Product Name" +"</td>"
1110
			+"<td>" + "SKU at Snapdeal" + "</td>"
1096
			+"<td>" + "SKU at Snapdeal" + "</td>"
1111
			+"<td>" + "SUPC" + "</td>"
1097
			+"<td>" + "SUPC" + "</td>"