FileUtil.copy(xml, out, null);
    private void genxml(Ivy ivy, File cache, String organisation, String module, String conf) throws IOException {        File xml = new File(cache, XmlReportOutputter.getReportFileName(new ModuleId(organisation, module), conf));        File out;        if (_todir != null) {            out = new File(_todir, IvyPatternHelper.substitute(_outputpattern, organisation, module, "", "", "", "xml", conf));        } else {            out = new File(IvyPatternHelper.substitute(_outputpattern, organisation, module, "", "", "", "xml", conf));        }                FileUtil.copy(xml, out, null);    }