use of fr.inria.spirals.repairnator.serializer.ScannerSerializer4Bears in project repairnator by Spirals-Team.
the class Launcher method runScanner.
private List<BuildToBeInspected> runScanner() throws IOException {
Launcher.LOGGER.info("Start to scan projects in travis...");
ProjectScanner scanner = new ProjectScanner(this.config.getLookFromDate(), this.config.getLookToDate(), this.config.getRunId());
List<BuildToBeInspected> buildsToBeInspected = scanner.getListOfBuildsToBeInspectedFromProjects(this.config.getInputPath());
ProcessSerializer scannerSerializer;
if (this.config.getLauncherMode() == LauncherMode.REPAIR) {
scannerSerializer = new ScannerSerializer(this.engines, scanner);
} else {
scannerSerializer = new ScannerSerializer4Bears(this.engines, scanner);
ScannerDetailedDataSerializer scannerDetailedDataSerializer = new ScannerDetailedDataSerializer(this.engines, buildsToBeInspected);
scannerDetailedDataSerializer.serialize();
}
scannerSerializer.serialize();
if (buildsToBeInspected.isEmpty()) {
Launcher.LOGGER.info("No build has been found (" + scanner.getTotalScannedBuilds() + " scanned builds.)");
}
return buildsToBeInspected;
}
Aggregations