Subversion Repositories SmartDukaan

Rev

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

Rev 30890 Rev 30896
Line 23... Line 23...
23
import org.springframework.context.annotation.Primary;
23
import org.springframework.context.annotation.Primary;
24
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
24
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
25
import org.springframework.core.io.ClassPathResource;
25
import org.springframework.core.io.ClassPathResource;
26
import org.springframework.mail.javamail.JavaMailSender;
26
import org.springframework.mail.javamail.JavaMailSender;
27
import org.springframework.mail.javamail.JavaMailSenderImpl;
27
import org.springframework.mail.javamail.JavaMailSenderImpl;
28
import org.springframework.scheduling.annotation.EnableScheduling;
-
 
29
import org.springframework.ui.velocity.VelocityEngineFactoryBean;
28
import org.springframework.ui.velocity.VelocityEngineFactoryBean;
30
 
29
 
31
import java.io.FileInputStream;
30
import java.io.FileInputStream;
32
import java.io.IOException;
31
import java.io.IOException;
33
import java.time.LocalDate;
32
import java.time.LocalDate;
Line 36... Line 35...
36
import java.util.Properties;
35
import java.util.Properties;
37
import java.util.stream.Collectors;
36
import java.util.stream.Collectors;
38
 
37
 
39
@SpringBootApplication
38
@SpringBootApplication
40
//@EnableCaching
39
//@EnableCaching
41
@EnableScheduling
40
//@EnableScheduling
42
@ComponentScan("com.smartdukaan.cron.*, com.spice.profitmandi.common.*")
41
@ComponentScan("com.smartdukaan.cron.*, com.spice.profitmandi.common.*")
43
public class Application implements ApplicationRunner {
42
public class Application implements ApplicationRunner {
44
 
43
 
45
	private static final Logger LOGGER = LogManager.getLogger(Application.class);
44
	private static final Logger LOGGER = LogManager.getLogger(Application.class);
46
 
45
 
Line 774... Line 773...
774
		if (args.containsOption("fixinsurance")) {
773
		if (args.containsOption("fixinsurance")) {
775
			runOnceTasks.addMissingWalletDebitsForInsurance();
774
			runOnceTasks.addMissingWalletDebitsForInsurance();
776
			System.exit(0);
775
			System.exit(0);
777
		}
776
		}
778
 
777
 
-
 
778
		if (args.containsOption("processActivatedImeisForSchemes")) {
-
 
779
			scheduledTasks.processActivatedImeisForSchemes();
-
 
780
			System.exit(0);
-
 
781
		}
-
 
782
 
779
	}
783
	}
780
 
784
 
781
}
785
}
782
786