private void writeReportFile() throws IOException { ReportParams params = new ReportParams(); params.setSource(tempDir + "/output_merge.xml"); params.setOutput(xmlout); params.alias(xstream); String xmlContents = xstream.toXML(params); FileUtils.write(new File(tempDir, "dotcover_report.xml"), xmlContents); }