Search in sources :

Example 1 with CSVSerializerEngine

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;
}
Also used : JSONFileSerializerEngine(fr.inria.spirals.repairnator.serializer.engines.json.JSONFileSerializerEngine) RepairnatorConfig(fr.inria.spirals.repairnator.config.RepairnatorConfig) ArrayList(java.util.ArrayList) CSVSerializerEngine(fr.inria.spirals.repairnator.serializer.engines.table.CSVSerializerEngine) CSVSerializerEngine(fr.inria.spirals.repairnator.serializer.engines.table.CSVSerializerEngine) SerializerEngine(fr.inria.spirals.repairnator.serializer.engines.SerializerEngine) MongoDBSerializerEngine(fr.inria.spirals.repairnator.serializer.engines.json.MongoDBSerializerEngine) JSONFileSerializerEngine(fr.inria.spirals.repairnator.serializer.engines.json.JSONFileSerializerEngine) GoogleSpreadsheetSerializerEngine(fr.inria.spirals.repairnator.serializer.engines.table.GoogleSpreadsheetSerializerEngine)

Aggregations

RepairnatorConfig (fr.inria.spirals.repairnator.config.RepairnatorConfig)1 SerializerEngine (fr.inria.spirals.repairnator.serializer.engines.SerializerEngine)1 JSONFileSerializerEngine (fr.inria.spirals.repairnator.serializer.engines.json.JSONFileSerializerEngine)1 MongoDBSerializerEngine (fr.inria.spirals.repairnator.serializer.engines.json.MongoDBSerializerEngine)1 CSVSerializerEngine (fr.inria.spirals.repairnator.serializer.engines.table.CSVSerializerEngine)1 GoogleSpreadsheetSerializerEngine (fr.inria.spirals.repairnator.serializer.engines.table.GoogleSpreadsheetSerializerEngine)1 ArrayList (java.util.ArrayList)1