@Mojo(name="rat", requiresDependencyResolution=TEST) public class RatReportMojo extends AbstractRatMojo implements org.apache.maven.reporting.MavenReport
Modifier and Type | Field and Description |
---|---|
static String |
DOT_HTML |
skip
Constructor and Description |
---|
RatReportMojo() |
Modifier and Type | Method and Description |
---|---|
boolean |
canGenerateReport()
Returns, whether the report may be generated.
|
void |
execute()
Called from Maven to invoke the plugin.
|
void |
generate(org.codehaus.doxia.sink.Sink sink,
Locale locale)
Writes the report to the Doxia sink.
|
String |
getCategoryName()
Returns the reports category name.
|
String |
getDescription(Locale locale)
Returns the reports description.
|
String |
getName(Locale locale)
Returns the reports name.
|
String |
getOutputName()
Returns the reports file name.
|
File |
getReportOutputDirectory()
Returns the reports output directory.
|
boolean |
isExternalReport()
Returns, whether this is an external report.
|
void |
setReportOutputDirectory(File pOutputDirectory)
Sets the reports output directory.
|
createReport, createReport, getConfiguration, getProject, getResources
public static final String DOT_HTML
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
execute
in interface org.apache.maven.plugin.Mojo
org.apache.maven.plugin.MojoFailureException
- An error in the plugin configuration was detected.org.apache.maven.plugin.MojoExecutionException
- An error occurred while creating the report.public boolean canGenerateReport()
canGenerateReport
in interface org.apache.maven.reporting.MavenReport
public void generate(org.codehaus.doxia.sink.Sink sink, Locale locale) throws org.apache.maven.reporting.MavenReportException
generate
in interface org.apache.maven.reporting.MavenReport
sink
- The doxia sink, kind of a SAX handler.locale
- The locale to use for writing the report.org.apache.maven.reporting.MavenReportException
- Writing the report failed.public String getCategoryName()
getCategoryName
in interface org.apache.maven.reporting.MavenReport
MavenReport.CATEGORY_PROJECT_REPORTS
public String getDescription(Locale locale)
getDescription
in interface org.apache.maven.reporting.MavenReport
locale
- Requested locale of the bundlepublic String getName(Locale locale)
getName
in interface org.apache.maven.reporting.MavenReport
locale
- Requested locale of the bundlepublic String getOutputName()
getOutputName
in interface org.apache.maven.reporting.MavenReport
public File getReportOutputDirectory()
getReportOutputDirectory
in interface org.apache.maven.reporting.MavenReport
public boolean isExternalReport()
isExternalReport
in interface org.apache.maven.reporting.MavenReport
public void setReportOutputDirectory(File pOutputDirectory)
setReportOutputDirectory
in interface org.apache.maven.reporting.MavenReport
pOutputDirectory
- Reports target directory.Copyright © 2006–2018 Apache Software Foundation. All rights reserved.