org.apache.maven.plugin.checkstyle
Class CheckstyleReport

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.reporting.AbstractMavenReport
          extended by org.apache.maven.plugin.checkstyle.AbstractCheckstyleReport
              extended by org.apache.maven.plugin.checkstyle.CheckstyleReport
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.apache.maven.reporting.MavenMultiPageReport, org.apache.maven.reporting.MavenReport

public class CheckstyleReport
extends AbstractCheckstyleReport

Perform a Checkstyle analysis, and generate a report on violations.

Version:
$Id: CheckstyleReport.html 816667 2012-05-08 14:02:08Z hboutemy $
Author:
Emmanuel Venisse, Vincent Siveton, Joakim Erdfelt
Is defined by the goal name:
checkstyle
Requires the dependencies in this specified scope:
compile

Field Summary
 
Fields inherited from class org.apache.maven.plugin.checkstyle.AbstractCheckstyleReport
checkstyleExecutor, checkstyleRssGenerator, locator, PLUGIN_RESOURCES, project, siteTool, skip, stringOutputStream
 
Fields inherited from interface org.apache.maven.reporting.MavenReport
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLE
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
CheckstyleReport()
           
 
Method Summary
 boolean canGenerateReport()
          
protected  CheckstyleExecutorRequest createRequest()
          Create the Checkstyle executor request.
 void executeReport(Locale locale)
          
 String getOutputName()
          
protected  org.apache.maven.project.MavenProject getProject()
          
 
Methods inherited from class org.apache.maven.plugin.checkstyle.AbstractCheckstyleReport
getConsoleListener, getDescription, getListener, getName, getOutputDirectory, getSiteRenderer, setReportOutputDirectory
 
Methods inherited from class org.apache.maven.reporting.AbstractMavenReport
closeReport, execute, generate, generate, generate, getCategoryName, getReportOutputDirectory, getSink, getSinkFactory, isExternalReport
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckstyleReport

public CheckstyleReport()
Method Detail

getProject

protected org.apache.maven.project.MavenProject getProject()

Overrides:
getProject in class AbstractCheckstyleReport

executeReport

public void executeReport(Locale locale)
                   throws org.apache.maven.reporting.MavenReportException

Overrides:
executeReport in class AbstractCheckstyleReport
Throws:
org.apache.maven.reporting.MavenReportException

createRequest

protected CheckstyleExecutorRequest createRequest()
                                           throws org.apache.maven.reporting.MavenReportException
Create the Checkstyle executor request.

Specified by:
createRequest in class AbstractCheckstyleReport
Returns:
The executor request.
Throws:
org.apache.maven.reporting.MavenReportException - If something goes wrong during creation.

getOutputName

public String getOutputName()


canGenerateReport

public boolean canGenerateReport()

Specified by:
canGenerateReport in interface org.apache.maven.reporting.MavenReport
Overrides:
canGenerateReport in class org.apache.maven.reporting.AbstractMavenReport


Copyright © 2005-2011 The Apache Software Foundation. All Rights Reserved.