Search in sources :

Example 1 with SingleCsvProblemExporter

use of org.eclipse.titanium.markers.export.SingleCsvProblemExporter in project titan.EclipsePlug-ins by eclipse.

the class SonarDataExporter method exportCodeSmells.

private void exportCodeSmells(final URI exportDir) throws IOException {
    final URI filePath = URIUtil.append(exportDir, "code_smells.csv");
    final File file = new File(filePath);
    FileUtils.delete(file);
    final BaseProblemExporter exporter = new SingleCsvProblemExporter(project);
    exporter.exportMarkers(new NullProgressMonitor(), filePath.getPath(), Calendar.getInstance().getTime());
}
Also used : NullProgressMonitor(org.eclipse.core.runtime.NullProgressMonitor) BaseProblemExporter(org.eclipse.titanium.markers.export.BaseProblemExporter) SingleCsvProblemExporter(org.eclipse.titanium.markers.export.SingleCsvProblemExporter) URI(java.net.URI) File(java.io.File)

Aggregations

File (java.io.File)1 URI (java.net.URI)1 NullProgressMonitor (org.eclipse.core.runtime.NullProgressMonitor)1 BaseProblemExporter (org.eclipse.titanium.markers.export.BaseProblemExporter)1 SingleCsvProblemExporter (org.eclipse.titanium.markers.export.SingleCsvProblemExporter)1