use of fr.inria.spirals.repairnator.notifier.engines.EmailNotifierEngine in project repairnator by Spirals-Team.
the class LauncherUtils method initNotifierEngines.
public static List<NotifierEngine> initNotifierEngines(Logger logger) {
List<NotifierEngine> notifierEngines = new ArrayList<>();
RepairnatorConfig config = RepairnatorConfig.getInstance();
if (config.getSmtpServer() != null && config.getNotifyTo() != null) {
logger.info("The email notifier engine will be used.");
notifierEngines.add(new EmailNotifierEngine(config.getNotifyTo(), config.getSmtpServer()));
} else {
logger.info("The email notifier engine won't be used.");
}
return notifierEngines;
}
Aggregations