use of fr.inria.spirals.repairnator.serializer.engines.table.CSVSerializerEngine in project repairnator by Spirals-Team.
the class LauncherUtils method initFileSerializerEngines.
public static List<SerializerEngine> initFileSerializerEngines(Logger logger) {
List<SerializerEngine> fileSerializerEngines = new ArrayList<>();
RepairnatorConfig config = RepairnatorConfig.getInstance();
if (config.getOutputPath() != null) {
logger.info("Initialize file serializer engines.");
String path = config.getOutputPath();
path += config.getBuildId() > 0 ? "/" + config.getBuildId() : "";
fileSerializerEngines.add(new CSVSerializerEngine(path));
fileSerializerEngines.add(new JSONFileSerializerEngine(path));
} else {
logger.info("File serializers won't be used.");
}
return fileSerializerEngines;
}
Aggregations