Subversion Repositories SmartDukaan

Rev

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

Rev 4098 Rev 4099
Line 67... Line 67...
67
    private Date 				  timeStamp			  		  = null;
67
    private Date 				  timeStamp			  		  = null;
68
    private CommandLine           cmd                         = null;
68
    private CommandLine           cmd                         = null;
69
    private Map<Long, List<Item>> entityIdItemMap             = new LinkedHashMap<Long, List<Item>>();
69
    private Map<Long, List<Item>> entityIdItemMap             = new LinkedHashMap<Long, List<Item>>();
70
    private Long                  lastGenerationTime          = 0l;
70
    private Long                  lastGenerationTime          = 0l;
71
    private Map<Long, Entity>     entities;
71
    private Map<Long, Entity>     entities;
72
    private Map<Long, Entity>     dbg_entities;
-
 
73
    private List<Item>            items;
72
    private List<Item>            items;
74
    private List<Source>          sources;
73
    private List<Source>          sources;
75
    private CatalogClient         csc;
74
    private CatalogClient         csc;
76
    private Client                client;
75
    private Client                client;
77
 
76
 
Line 188... Line 187...
188
            } catch (Exception e) {
187
            } catch (Exception e) {
189
                log.error("Error updating prices", e);
188
                log.error("Error updating prices", e);
190
            }
189
            }
191
        }
190
        }
192
 
191
 
193
//        GmailUtils gm = new GmailUtils();
192
        GmailUtils gm = new GmailUtils();
194
//        String[] sendTo = { "chandranshu.s@shop2020.in",
193
        String[] sendTo = { "chandranshu.s@shop2020.in",
195
//                "rajveer.singh@shop2020.in", "mandeep.dhir@shop2020.in" };
194
                "rajveer.singh@shop2020.in", "mandeep.dhir@shop2020.in" };
196
//
195
 
197
//        try {
196
        try {
198
//            gm.sendSSLMessage(sendTo, "Content Generation Successful ? : "
197
            gm.sendSSLMessage(sendTo, "Content Generation Successful ? : "
199
//                    + isSuccess, "Content generation completed at time : "
198
                    + isSuccess, "Content generation completed at time : "
200
//                    + Calendar.getInstance().getTime().toString(),
199
                    + Calendar.getInstance().getTime().toString(),
201
//                    "build@shop2020.in", "shop2020", logfile);
200
                    "build@shop2020.in", "shop2020", logfile);
202
//        } catch (MessagingException e) {
201
        } catch (MessagingException e) {
203
//            log.error("Could not send status mail", e);
202
            log.error("Could not send status mail", e);
204
//        }
203
        }
205
    }
204
    }
206
 
205
 
207
    public boolean cleanDir(File dir, boolean deleteSelf) {
206
    public boolean cleanDir(File dir, boolean deleteSelf) {
208
        if (dir.isDirectory()) {
207
        if (dir.isDirectory()) {
209
            String[] children = dir.list();
208
            String[] children = dir.list();
Line 335... Line 334...
335
        if (GENERATION_TYPE.equals(GENERATION_TYPE_ALL)) {
334
        if (GENERATION_TYPE.equals(GENERATION_TYPE_ALL)) {
336
            entities = CreationUtils.getEntities();
335
            entities = CreationUtils.getEntities();
337
            lastGenerationTime = new Long(0);
336
            lastGenerationTime = new Long(0);
338
        } else if (GENERATION_TYPE.equals(GENERATION_TYPE_ONE)) {
337
        } else if (GENERATION_TYPE.equals(GENERATION_TYPE_ONE)) {
339
            entities = new HashMap<Long, Entity>();
338
            entities = new HashMap<Long, Entity>();
340
            dbg_entities = CreationUtils.getEntities();
-
 
341
            entities.put(Long.parseLong(ENTITY_ID),
339
            entities.put(Long.parseLong(ENTITY_ID),
342
                    CreationUtils.getEntity(Long.parseLong(ENTITY_ID)));
340
                    CreationUtils.getEntity(Long.parseLong(ENTITY_ID)));
343
            lastGenerationTime = new Long(0);
341
            lastGenerationTime = new Long(0);
344
        } else {
342
        } else {
345
        	entities = CreationUtils.getEntities();
343
        	entities = CreationUtils.getEntities();