private void writeDescription()

in src/main/java/org/apache/maven/plugins/help/DescribeMojo.java [248:260]


    private void writeDescription(StringBuilder descriptionBuffer) throws MojoExecutionException {
        if (output != null) {
            try {
                writeFile(output, descriptionBuffer);
            } catch (IOException e) {
                throw new MojoExecutionException("Cannot write plugin/goal description to output: " + output, e);
            }

            getLog().info("Wrote descriptions to: " + output);
        } else {
            getLog().info(descriptionBuffer.toString());
        }
    }