@Mojo(name="rat",
requiresDependencyResolution=TEST,
threadSafe=true)
public class RatReportMojo
extends AbstractRatMojo
implements org.apache.maven.reporting.MavenMultiPageReport
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
The local repository.
|
protected File |
outputDirectory
The output directory for the report.
|
protected List<org.apache.maven.artifact.repository.ArtifactRepository> |
remoteRepositories
Remote repositories used for the project.
|
protected org.apache.maven.doxia.siterenderer.Renderer |
siteRenderer
Doxia Site Renderer component.
|
protected org.apache.maven.doxia.tools.SiteTool |
siteTool
SiteTool.
|
project, skip| Constructor and Description |
|---|
RatReportMojo() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGenerateReport() |
protected void |
closeReport()
Actions when closing the report.
|
void |
execute()
This method is called when the report generation is invoked directly as a standalone Mojo.
|
protected void |
executeReport(Locale locale)
Writes the report to the Doxia sink.
|
void |
generate(org.codehaus.doxia.sink.Sink sink,
Locale locale)
Deprecated.
use
generate(Sink, SinkFactory, Locale) instead. |
void |
generate(org.apache.maven.doxia.sink.Sink sink,
Locale locale)
Deprecated.
use
generate(Sink, SinkFactory, Locale) instead. |
void |
generate(org.apache.maven.doxia.sink.Sink sink,
org.apache.maven.doxia.sink.SinkFactory sinkFactory,
Locale locale)
This method is called when the report generation is invoked by maven-site-plugin.
|
String |
getCategoryName() |
String |
getDescription(Locale locale)
Returns the reports description.
|
protected String |
getInputEncoding()
Gets the input files encoding.
|
String |
getName(Locale locale)
Returns the reports name.
|
protected String |
getOutputDirectory() |
protected String |
getOutputEncoding()
Gets the effective reporting output files encoding.
|
String |
getOutputName()
Returns the reports file name.
|
File |
getReportOutputDirectory() |
org.apache.maven.doxia.sink.Sink |
getSink() |
org.apache.maven.doxia.sink.SinkFactory |
getSinkFactory() |
protected org.apache.maven.doxia.siterenderer.Renderer |
getSiteRenderer() |
boolean |
isExternalReport() |
void |
setReportOutputDirectory(File reportOutputDirectory) |
createReport, createReport, getConfiguration, getProject, getResources@Parameter(defaultValue="${project.reporting.outputDirectory}",
readonly=true,
required=true)
protected File outputDirectory
@Parameter(defaultValue="${localRepository}",
readonly=true,
required=true)
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
@Parameter(defaultValue="${project.remoteArtifactRepositories}",
readonly=true,
required=true)
protected List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories
@Component protected org.apache.maven.doxia.tools.SiteTool siteTool
@Component protected org.apache.maven.doxia.siterenderer.Renderer siteRenderer
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
execute in interface org.apache.maven.plugin.Mojoorg.apache.maven.plugin.MojoExecutionException - if an error occurs when generating the reportMojo.execute()@Deprecated public void generate(org.codehaus.doxia.sink.Sink sink, Locale locale) throws org.apache.maven.reporting.MavenReportException
generate(Sink, SinkFactory, Locale) instead.generate in interface org.apache.maven.reporting.MavenReportsink - the sink to use for the generation.locale - the wanted locale to generate the report, could be null.org.apache.maven.reporting.MavenReportException - if any@Deprecated public void generate(org.apache.maven.doxia.sink.Sink sink, Locale locale) throws org.apache.maven.reporting.MavenReportException
generate(Sink, SinkFactory, Locale) instead.sink - locale - org.apache.maven.reporting.MavenReportExceptionpublic void generate(org.apache.maven.doxia.sink.Sink sink,
org.apache.maven.doxia.sink.SinkFactory sinkFactory,
Locale locale)
throws org.apache.maven.reporting.MavenReportException
generate in interface org.apache.maven.reporting.MavenMultiPageReportsink - sinkFactory - locale - org.apache.maven.reporting.MavenReportExceptionpublic String getCategoryName()
getCategoryName in interface org.apache.maven.reporting.MavenReportpublic File getReportOutputDirectory()
getReportOutputDirectory in interface org.apache.maven.reporting.MavenReportpublic void setReportOutputDirectory(File reportOutputDirectory)
setReportOutputDirectory in interface org.apache.maven.reporting.MavenReportprotected String getOutputDirectory()
protected org.apache.maven.doxia.siterenderer.Renderer getSiteRenderer()
protected String getInputEncoding()
null.protected String getOutputEncoding()
null.protected void closeReport()
public org.apache.maven.doxia.sink.Sink getSink()
public org.apache.maven.doxia.sink.SinkFactory getSinkFactory()
public boolean isExternalReport()
isExternalReport in interface org.apache.maven.reporting.MavenReportfalse by default.MavenReport.isExternalReport()public boolean canGenerateReport()
canGenerateReport in interface org.apache.maven.reporting.MavenReportprotected void executeReport(Locale locale) throws org.apache.maven.reporting.MavenReportException
locale - The locale to use for writing the report.org.apache.maven.reporting.MavenReportException - Writing the report failed.public String getDescription(Locale locale)
getDescription in interface org.apache.maven.reporting.MavenReportlocale - Requested locale of the bundlepublic String getName(Locale locale)
getName in interface org.apache.maven.reporting.MavenReportlocale - Requested locale of the bundlepublic String getOutputName()
getOutputName in interface org.apache.maven.reporting.MavenReportCopyright © 2006–2025 Apache Software Foundation. All rights reserved.