use of fr.inria.spirals.repairnator.serializer.InspectorTimeSerializer4Bears in project repairnator by Spirals-Team.
the class Launcher method mainProcess.
private void mainProcess() throws IOException {
LOGGER.info("Start by getting the build (buildId: " + this.config.getBuildId() + ") with the following config: " + this.config);
this.getBuildToBeInspected();
HardwareInfoSerializer hardwareInfoSerializer = new HardwareInfoSerializer(this.engines, this.config.getRunId(), this.config.getBuildId() + "");
hardwareInfoSerializer.serialize();
List<AbstractDataSerializer> serializers = new ArrayList<>();
if (this.config.getLauncherMode() == LauncherMode.REPAIR) {
serializers.add(new InspectorSerializer(this.engines));
serializers.add(new InspectorTimeSerializer(this.engines));
} else {
serializers.add(new InspectorSerializer4Bears(this.engines));
serializers.add(new InspectorTimeSerializer4Bears(this.engines));
}
serializers.add(new NopolSerializer(this.engines));
serializers.add(new NPEFixSerializer(this.engines));
serializers.add(new AstorSerializer(this.engines));
serializers.add(new MetricsSerializer(this.engines));
serializers.add(new PipelineErrorSerializer(this.engines));
ProjectInspector inspector;
if (config.getLauncherMode() == LauncherMode.BEARS) {
inspector = new ProjectInspector4Bears(buildToBeInspected, this.config.getWorkspacePath(), serializers, this.notifiers);
} else {
inspector = new ProjectInspector(buildToBeInspected, this.config.getWorkspacePath(), serializers, this.notifiers);
}
inspector.run();
LOGGER.info("Inspector is finished. The process will now exit.");
System.exit(0);
}
Aggregations