public void execute()

in apache-rat-tasks/src/main/java/org/apache/rat/anttasks/Report.java [184:207]


    public void execute() {
        validate();

        PrintWriter out = null;
        try {
            if (reportFile == null) {
                out = new PrintWriter(
                          new OutputStreamWriter(
                              new LogOutputStream(this, Project.MSG_INFO)
                          ));
            } else {
                out = new PrintWriter(new OutputStreamWriter(
                        new FileOutputStream(reportFile),
                        Charset.forName("UTF-8")
                ));
            }
            createReport(out);
            out.flush();
        } catch (IOException | RatException | InterruptedException | TransformerException ioex) {
            throw new BuildException(ioex);
        } finally {
            IOUtils.closeQuietly(out);
        }
    }