Search in sources :

Example 1 with ScannerSerializer4Bears

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;
}
Also used : ScannerSerializer(fr.inria.spirals.repairnator.serializer.ScannerSerializer) ScannerSerializer4Bears(fr.inria.spirals.repairnator.serializer.ScannerSerializer4Bears) ProcessSerializer(fr.inria.spirals.repairnator.serializer.ProcessSerializer) ScannerDetailedDataSerializer(fr.inria.spirals.repairnator.serializer.ScannerDetailedDataSerializer) BuildToBeInspected(fr.inria.spirals.repairnator.BuildToBeInspected)

Aggregations

BuildToBeInspected (fr.inria.spirals.repairnator.BuildToBeInspected)1 ProcessSerializer (fr.inria.spirals.repairnator.serializer.ProcessSerializer)1 ScannerDetailedDataSerializer (fr.inria.spirals.repairnator.serializer.ScannerDetailedDataSerializer)1 ScannerSerializer (fr.inria.spirals.repairnator.serializer.ScannerSerializer)1 ScannerSerializer4Bears (fr.inria.spirals.repairnator.serializer.ScannerSerializer4Bears)1