Subversion Repositories SmartDukaan

Rev

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

Rev 30858 Rev 30859
Line 36... Line 36...
36
import java.util.Properties;
36
import java.util.Properties;
37
import java.util.stream.Collectors;
37
import java.util.stream.Collectors;
38
 
38
 
39
@SpringBootApplication
39
@SpringBootApplication
40
//@EnableCaching
40
//@EnableCaching
41
@EnableScheduling
41
//@EnableScheduling
42
@ComponentScan("com.smartdukaan.cron.*, com.spice.profitmandi.common.*")
42
@ComponentScan("com.smartdukaan.cron.*, com.spice.profitmandi.common.*")
43
public class Application implements ApplicationRunner {
43
public class Application implements ApplicationRunner {
44
 
44
 
45
	private static final Logger LOGGER = LogManager.getLogger(Application.class);
45
	private static final Logger LOGGER = LogManager.getLogger(Application.class);
46
 
46
 
Line 751... Line 751...
751
			}
751
			}
752
 
752
 
753
			System.exit(0);
753
			System.exit(0);
754
		}
754
		}
755
 
755
 
-
 
756
		if (args.containsOption("calculateInterestAccured")) {
-
 
757
 
-
 
758
			scheduledTasks.calculateInterestAccured();
-
 
759
			System.exit(0);
-
 
760
		}
-
 
761
 
-
 
762
		if (args.containsOption("loanSettlement")) {
-
 
763
 
-
 
764
			scheduledTasks.loanSettlement();
-
 
765
			System.exit(0);
-
 
766
		}
-
 
767
 
-
 
768
		if (args.containsOption("dailyLoanAlert")) {
-
 
769
 
-
 
770
			scheduledTasks.dailyLoanAlert();
-
 
771
			System.exit(0);
-
 
772
		}
-
 
773
 
756
	}
774
	}
757
 
775
 
758
}
776
}
759
777