LOGGER.info("Starting import of project ");
EvolizerSessionHandler handler = EvolizerSessionHandler.getHandler();
try {
handler.updateSchema(fProject);
IEvolizerSession persistenceProvider = handler.getCurrentSession(fProject);
EvolizerGitImporter importer =
new EvolizerGitImporter(
fProject.getLocation().toString(),
persistenceProvider,
fFileExtensionRegEx,
monitor);
importer.importProject();
persistenceProvider.close();
} catch (EvolizerException e) {
LOGGER.error("Error while importing versioning history for project " + fProject.getName(), e);
return Status.CANCEL_STATUS;
} catch (GitImporterException e) {
LOGGER.error("Error while importing versioning history for project " + fProject.getName(), e);