Subversion Repositories SmartDukaan

Rev

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

Rev 23906 Rev 23929
Line 18... Line 18...
18
import org.springframework.mail.javamail.JavaMailSender;
18
import org.springframework.mail.javamail.JavaMailSender;
19
import org.springframework.mail.javamail.JavaMailSenderImpl;
19
import org.springframework.mail.javamail.JavaMailSenderImpl;
20
import org.springframework.scheduling.annotation.EnableScheduling;
20
import org.springframework.scheduling.annotation.EnableScheduling;
21
 
21
 
22
import com.smartdukaan.cron.migrations.RunOnceTasks;
22
import com.smartdukaan.cron.migrations.RunOnceTasks;
-
 
23
import com.smartdukaan.cron.scheduled.ScheduledTasks;
23
 
24
 
24
 
25
 
25
@SpringBootApplication
26
@SpringBootApplication
26
@EnableCaching
27
@EnableCaching
27
@EnableScheduling
28
@EnableScheduling
Line 62... Line 63...
62
        return mailSender;
63
        return mailSender;
63
    }
64
    }
64
 
65
 
65
	@Autowired 
66
	@Autowired 
66
	private RunOnceTasks runOnceTasks;
67
	private RunOnceTasks runOnceTasks;
-
 
68
	
-
 
69
	@Autowired 
-
 
70
	private ScheduledTasks scheduledTasks;
67
	@Override
71
	@Override
68
	public void run(ApplicationArguments args) throws Exception {
72
	public void run(ApplicationArguments args) throws Exception {
69
		LOGGER.info("Called run method");
73
		LOGGER.info("Called run method");
70
		if(args.containsOption("once")) {
74
		if(args.containsOption("once")) {
71
			runOnceTasks.getInvestmentDetails();
75
			scheduledTasks.sendPartnerInvestmentDetails();
72
			System.exit(0);
76
			System.exit(0);
73
		}
77
		}
74
		
78
		
75
	}
79
	}
76
 
80