|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.AbstractMojo org.apache.maven.reporting.AbstractMavenReport de.smartics.maven.plugin.buildmetadata.AbstractReportMojo de.smartics.maven.plugin.buildmetadata.BuildReportMojo
public final class BuildReportMojo
Generates a report about the meta data provided to the build.
Field Summary | |
---|---|
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. |
Fields inherited from class de.smartics.maven.plugin.buildmetadata.AbstractReportMojo |
---|
factory, locale, localRepository, logLevel, outputDirectory, project, resolver, siteRenderer, skip |
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 | |
---|---|
BuildReportMojo() |
Method Summary | |
---|---|
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. |
Methods inherited from class de.smartics.maven.plugin.buildmetadata.AbstractReportMojo |
---|
getBundle, getOutputDirectory, getProject, getSiteRenderer, provideSink |
Methods inherited from class org.apache.maven.reporting.AbstractMavenReport |
---|
closeReport, generate, getCategoryName, getReportOutputDirectory, getSink, isExternalReport, setReportOutputDirectory |
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 |
Field Detail |
---|
protected 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.scm
build.dateAndVersion
build.runtime
build.java
build.maven
project
build.misc
If no valid section is given, the property is silently rendered in the build.misc
section.
Constructor Detail |
---|
public BuildReportMojo()
Method Detail |
---|
public String getName(Locale locale)
MavenReport.getName(java.util.Locale)
public String getDescription(Locale locale)
MavenReport.getDescription(java.util.Locale)
public String getOutputName()
MavenReport.getOutputName()
public void execute() throws MojoExecutionException
execute
in interface
Mojo
execute
in class
AbstractReportMojo
MojoExecutionException
- on any problem encountered.
protected void init()
protected void executeReport(Locale locale) throws MavenReportException
Configures the plugin logger.
executeReport
in class
AbstractReportMojo
MavenReportException
AbstractMavenReport.executeReport(java.util.Locale)
public boolean canGenerateReport()
Returns false
if the properties file that contains the build information cannot be read.
canGenerateReport
in interface
MavenReport
canGenerateReport
in class
AbstractReportMojo
AbstractMavenReport.canGenerateReport()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |