| Line 751... |
Line 751... |
| 751 |
}
|
751 |
}
|
| 752 |
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd-HH:mm:ss");
|
752 |
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd-HH:mm:ss");
|
| 753 |
String emailFromAddress = "build@shop2020.in";
|
753 |
String emailFromAddress = "build@shop2020.in";
|
| 754 |
String password = "cafe@nes";
|
754 |
String password = "cafe@nes";
|
| 755 |
GmailUtils mailer = new GmailUtils();
|
755 |
GmailUtils mailer = new GmailUtils();
|
| 756 |
String sendTo[] = new String[]{"vikram.raghav@shop2020.in"};
|
756 |
//String sendTo[] = new String[]{"vikram.raghav@shop2020.in"};
|
| 757 |
/*String sendTo[] = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
|
757 |
String sendTo[] = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
|
| 758 |
"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
|
758 |
"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
|
| 759 |
"yukti.jain@shop2020.in","manisha.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in","amar.kumar@shop2020.in"};
|
759 |
"yukti.jain@shop2020.in","manisha.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in","amar.kumar@shop2020.in"};
|
| 760 |
*/if(iterator > 1){
|
760 |
if(iterator > 1){
|
| 761 |
FileOutputStream fileOut = null;
|
761 |
FileOutputStream fileOut = null;
|
| 762 |
fis.close();
|
762 |
fis.close();
|
| 763 |
try {
|
763 |
try {
|
| 764 |
//System.out.println("Before writing file ");
|
764 |
//System.out.println("Before writing file ");
|
| 765 |
fileOut = new FileOutputStream(SNAPDEAL_INVENTORY_SHEET);
|
765 |
fileOut = new FileOutputStream(SNAPDEAL_INVENTORY_SHEET);
|
| Line 803... |
Line 803... |
| 803 |
File file = new File(SNAPDEAL_INVENTORY_SHEET);
|
803 |
File file = new File(SNAPDEAL_INVENTORY_SHEET);
|
| 804 |
MultipartEntity mpEntity = new MultipartEntity();
|
804 |
MultipartEntity mpEntity = new MultipartEntity();
|
| 805 |
ContentBody cbFile = new FileBody(file,"application/vnd.ms-excel");
|
805 |
ContentBody cbFile = new FileBody(file,"application/vnd.ms-excel");
|
| 806 |
mpEntity.addPart("file", cbFile);
|
806 |
mpEntity.addPart("file", cbFile);
|
| 807 |
post.setEntity(mpEntity);
|
807 |
post.setEntity(mpEntity);
|
| 808 |
//response = client.execute(post);
|
808 |
response = client.execute(post);
|
| 809 |
try {
|
809 |
try {
|
| 810 |
rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
|
810 |
rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
|
| 811 |
} catch (IllegalStateException e1) {
|
811 |
} catch (IllegalStateException e1) {
|
| 812 |
// TODO Auto-generated catch block
|
812 |
// TODO Auto-generated catch block
|
| 813 |
e1.printStackTrace();
|
813 |
e1.printStackTrace();
|