Subversion Repositories SmartDukaan

Rev

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

Rev 7506 Rev 7662
Line 28... Line 28...
28
 
28
 
29
	public static void main(String[] args) throws Exception {
29
	public static void main(String[] args) throws Exception {
30
		//Boolean.parseBoolean("true");
30
		//Boolean.parseBoolean("true");
31
		Client client = new CatalogClient().getClient();
31
		Client client = new CatalogClient().getClient();
32
				
32
				
33
		log.info("Uploading Catalog to Google app engine");
-
 
34
		items = client.getAllItemsByStatus(status.ACTIVE);
33
		items = client.getAllItemsByStatus(status.ACTIVE);
35
		items.addAll(client.getAllItemsByStatus(status.PAUSED));
34
		items.addAll(client.getAllItemsByStatus(status.PAUSED));
36
		items.addAll(client.getAllItemsByStatus(status.COMING_SOON));
35
		items.addAll(client.getAllItemsByStatus(status.COMING_SOON));
37
		
36
		
38
		populateEntityIdItemMap();
37
		populateEntityIdItemMap();
Line 46... Line 45...
46
			}
45
			}
47
		}
46
		}
48
		
47
		
49
		
48
		
50
		// Upload catalog to Google App Engine.
49
		// Upload catalog to Google App Engine.
-
 
50
		log.info("Uploading Catalog to Google app engine");
51
		CatalogUploderToGAE catalogUploaderToGAE = new CatalogUploderToGAE();
51
		CatalogUploderToGAE catalogUploaderToGAE = new CatalogUploderToGAE();
52
		catalogUploaderToGAE.uploadItems(items);
52
		catalogUploaderToGAE.uploadItems(items);
53
 
53
 
54
		// FIXME Avoiding the finding of accesories, as list of categories for
54
		// FIXME Avoiding the finding of accesories, as list of categories for
55
		// which we need to find accessories is hardocoded in code.
55
		// which we need to find accessories is hardocoded in code.