Subversion Repositories SmartDukaan

Rev

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

Rev 30324 Rev 30335
Line 169... Line 169...
169
	private ScheduledTasks scheduledTasks;
169
	private ScheduledTasks scheduledTasks;
170
 
170
 
171
	@Autowired
171
	@Autowired
172
	private Reconciliation reconciliation;
172
	private Reconciliation reconciliation;
173
 
173
 
-
 
174
	@Autowired
-
 
175
	CaptchaService captchaService;
-
 
176
 
174
	@Override
177
	@Override
175
	public void run(ApplicationArguments args) throws Exception {
178
	public void run(ApplicationArguments args) throws Exception {
176
		LOGGER.info("Called run method");
179
		LOGGER.info("Called run method");
177
		if (args.containsOption("tc")) {
180
		if (args.containsOption("tc")) {
178
			System.out.println("Toffee service called");
181
			System.out.println("Toffee service called");
Line 684... Line 687...
684
				} catch (Exception e) {
687
				} catch (Exception e) {
685
					e.printStackTrace();
688
					e.printStackTrace();
686
				}
689
				}
687
			}
690
			}
688
 
691
 
-
 
692
			if (args.containsOption("amazonPurchase")) {
-
 
693
				try {
-
 
694
					runOnceTasks.amazonPurchase();
-
 
695
				} catch (Exception e) {
-
 
696
					e.printStackTrace();
-
 
697
				}
-
 
698
			}
-
 
699
 
-
 
700
			if (args.containsOption("getCaptchaCode")) {
-
 
701
				try {
-
 
702
					captchaService.getCaptchaCode("/home/amit/Desktop/generatingCodes.jpg");
-
 
703
				} catch (Exception e) {
-
 
704
					e.printStackTrace();
-
 
705
				}
-
 
706
			}
-
 
707
 
689
			if (args.containsOption("testIrnLive")) {
708
			if (args.containsOption("testIrnLive")) {
690
				try {
709
				try {
691
					runOnceTasks.testIrnLive(args.getOptionValues("invoiceNumber").get(0));
710
					runOnceTasks.testIrnLive(args.getOptionValues("invoiceNumber").get(0));
692
				} catch (Exception e) {
711
				} catch (Exception e) {
693
					e.printStackTrace();
712
					e.printStackTrace();