Package org.apache.maven.plugin.docck.reports

Examples of org.apache.maven.plugin.docck.reports.DocumentationReporter


        {
            if ( approveProjectPackaging( project.getPackaging() ) )
            {
                getLog().info( "Checking project: " + project.getName() );

                DocumentationReporter reporter = new DocumentationReporter();

                checkProject( project, reporter );

                if ( !hasErrors && reporter.hasErrors() )
                {
                    hasErrors = true;
                }

                reporters.put( project, reporter );
View Full Code Here


        StringBuilder buffer = new StringBuilder();

        for ( Map.Entry<MavenProject, DocumentationReporter> entry : reporters.entrySet() )
        {
            MavenProject project = entry.getKey();
            DocumentationReporter reporter = entry.getValue();

            if ( !reporter.getMessages().isEmpty() )
            {
                buffer.append( "\no " ).append( project.getName() );
                buffer.append( " (" );
                final int numberOfErrors = reporter.getMessagesByType( DocumentationReport.TYPE_ERROR ).size();
                buffer.append( numberOfErrors ).append( " error" ).append( numberOfErrors == 1 ? "" : "s" );
                buffer.append( ", " );
                final int numberOfWarnings = reporter.getMessagesByType( DocumentationReport.TYPE_WARN ).size();
                buffer.append( numberOfWarnings ).append( " warning" ).append( numberOfWarnings == 1 ? "" : "s" );
                buffer.append( ")" );
                buffer.append( "\n" );

                for ( String error : reporter.getMessages() )
                {
                    buffer.append( "  " ).append( error ).append( "\n" );
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.maven.plugin.docck.reports.DocumentationReporter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.