public final class BuildReportMojo extends AbstractReportMojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
createPropertiesReport
Flag to choose whether (
true) or not (false) the
build.properties file should be created. |
protected List<Property> |
properties
The list of a system properties or environment variables to be selected by
the user to include into the build meta data properties.
|
protected List<FileMapping> |
propertyOutputFileMapping
Maps a packaging to a location for the build meta data properties file.
|
factory, locale, localRepository, logLevel, outputDirectory, project, resolver, siteRenderer, skip| Constructor and Description |
|---|
BuildReportMojo() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGenerateReport() |
void |
execute()
Runs the report generation.
|
protected void |
executeReport(Locale locale) |
String |
getDescription(Locale locale) |
String |
getName(Locale locale) |
String |
getOutputName() |
protected void |
init()
Initializes the Mojo.
|
getBundle, getOutputDirectory, getProject, getSiteRenderer, provideSinkcloseReport, generate, getCategoryName, getReportOutputDirectory, getSink, isExternalReport, setReportOutputDirectoryprotected List<FileMapping> propertyOutputFileMapping
This mapping is especially useful for multi projects.
protected List<Property> properties
The name is the name of the property, the section is relevant for placing the property in one of the following sections:
build.scmbuild.dateAndVersionbuild.runtimebuild.javabuild.mavenprojectbuild.misc
If no valid section is given, the property is silently rendered in the
build.misc section.
protected boolean createPropertiesReport
true) or not (false) the
build.properties file should be created.
This will adjust the path of the propertiesOutputFile to
${project.build.directory}/build.properties.
This flag allows the report mojo to behave accordingly to that of the build mojo.
public String getDescription(Locale locale)
MavenReport.getDescription(java.util.Locale)public String getOutputName()
MavenReport.getOutputName()public void execute()
throws org.apache.maven.plugin.MojoExecutionException
AbstractReportMojoexecute in interface org.apache.maven.plugin.Mojoexecute in class AbstractReportMojoorg.apache.maven.plugin.MojoExecutionException - on any problem encountered.protected void init()
protected void executeReport(Locale locale) throws org.apache.maven.reporting.MavenReportException
Configures the plugin logger.
executeReport in class AbstractReportMojoorg.apache.maven.reporting.MavenReportExceptionAbstractMavenReport.executeReport(java.util.Locale)public boolean canGenerateReport()
Returns false if the properties file that contains the build
information cannot be read.
canGenerateReport in interface org.apache.maven.reporting.MavenReportcanGenerateReport in class AbstractReportMojoAbstractMavenReport.canGenerateReport()Copyright © 2006-2014. All Rights Reserved.