use of org.eclipse.titanium.sonar.metrics.SonarMetricsExporter in project titan.EclipsePlug-ins by eclipse.
the class SonarDataExporter method exportMetrics.
private void exportMetrics(final URI exportDir) throws IOException {
final URI filePath = URIUtil.append(exportDir, "metrics.xml");
final File file = new File(filePath);
FileUtils.delete(file);
final SonarMetricsExporter exporter = new SonarMetricsExporter();
try {
exporter.export(MetricData.measure(project), file);
} catch (JAXBException e) {
new ConsoleErrorHandler().reportException("Error while exporting the project metrics", e);
}
}
Aggregations