protected void exportIndex(final Locale locale) throws MavenReportException { try { final List<ExportIndex> exportIndices = createExportIndices(); final UnitTestDocIndex index = testDocHelper.getIndex(); if (formats == null || formats.contains("site")) { exportSinkReport(exportIndices, index); } if (formats != null && formats.contains("xml")) { exportXmlReport(exportIndices, index); } } catch (IOException e) { throw new MavenReportException("Cannot generate testdoc XML files.", e); } }
protected void exportIndex(final Locale locale) throws MavenReportException { try { final List<ExportIndex> exportIndices = createExportIndices(); final UnitTestDocIndex index = testDocHelper.getIndex(); if (formats == null || formats.contains("site")) { exportSinkReport(exportIndices, index); } if (formats != null && formats.contains("xml")) { exportXmlReport(exportIndices, index); } } catch (IOException e) { throw new MavenReportException("Cannot generate testdoc XML files.", e); } }