Subversion Repositories SmartDukaan

Rev

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

Rev 4778 Rev 4962
Line 187... Line 187...
187
            } catch (Exception e) {
187
            } catch (Exception e) {
188
                log.error("Error updating prices", e);
188
                log.error("Error updating prices", e);
189
            }
189
            }
190
        }
190
        }
191
 
191
 
192
        GmailUtils gm = new GmailUtils();
192
        /*GmailUtils gm = new GmailUtils();
193
        String[] sendTo = { "rajveer.singh@shop2020.in", "mandeep.dhir@shop2020.in" };
193
        String[] sendTo = { "rajveer.singh@shop2020.in", "mandeep.dhir@shop2020.in" };
194
 
194
 
195
        try {
195
        try {
196
            gm.sendSSLMessage(sendTo, "Content Generation Successful ? : "
196
            gm.sendSSLMessage(sendTo, "Content Generation Successful ? : "
197
                    + isSuccess, "Content generation completed at time : "
197
                    + isSuccess, "Content generation completed at time : "
198
                    + Calendar.getInstance().getTime().toString(),
198
                    + Calendar.getInstance().getTime().toString(),
199
                    "build@shop2020.in", "cafe@nes", logfile);
199
                    "build@shop2020.in", "cafe@nes", logfile);
200
        } catch (MessagingException e) {
200
        } catch (MessagingException e) {
201
            log.error("Could not send status mail", e);
201
            log.error("Could not send status mail", e);
202
        }
202
        }*/
203
    }
203
    }
204
 
204
 
205
    public boolean cleanDir(File dir, boolean deleteSelf) {
205
    public boolean cleanDir(File dir, boolean deleteSelf) {
206
        if (dir.isDirectory()) {
206
        if (dir.isDirectory()) {
207
            String[] children = dir.list();
207
            String[] children = dir.list();
Line 257... Line 257...
257
            items.addAll(client.getAllItemsByStatus(status.PAUSED));
257
            items.addAll(client.getAllItemsByStatus(status.PAUSED));
258
            try {
258
            try {
259
                //Generate prices and availability data for amazon
259
                //Generate prices and availability data for amazon
260
                AmazonSCDataGenerator.generatePricesAndAvailability();
260
                AmazonSCDataGenerator.generatePricesAndAvailability();
261
            } catch (Exception e) {
261
            } catch (Exception e) {
262
                // TODO: handle exception
262
                log.error(e);
263
            }
263
            }
264
            // Clean up the data from the solr directories.
264
            // Clean up the data from the solr directories.
265
            removeOldResources();
265
            removeOldResources();
266
 
266
 
267
        }
267
        }