Package org.apache.maven.plugins.invoker
Class InvokerReport
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.reporting.AbstractMavenReport
-
- org.apache.maven.plugins.invoker.InvokerReport
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo,org.apache.maven.reporting.MavenMultiPageReport,org.apache.maven.reporting.MavenReport
@Mojo(name="report", threadSafe=true) public class InvokerReport extends org.apache.maven.reporting.AbstractMavenReportGenerate a report based on the results of the Maven invocations. Note: This mojo doesn't fork any lifecycle, if you have a clean working copy, you have to use a command likemvn clean integration-test siteto ensure the build results are present when this goal is invoked.- Since:
- 1.4
-
-
Field Summary
Fields Modifier and Type Field Description protected org.codehaus.plexus.i18n.I18Ni18nInternationalization componentprivate java.io.FilereportsDirectoryBase directory where all build reports have been written to.-
Fields inherited from class org.apache.maven.reporting.AbstractMavenReport
locale, mojoExecution, outputDirectory, outputFormat, outputTimestamp, project, reactorProjects, remoteProjectRepositories, repoSession, siteDirectory, siteRenderer, siteTool
-
-
Constructor Summary
Constructors Constructor Description InvokerReport(org.codehaus.plexus.i18n.I18N i18n)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanGenerateReport()protected voidexecuteReport(java.util.Locale locale)java.lang.StringgetDescription(java.util.Locale locale)private java.lang.StringgetI18nString(java.util.Locale locale, java.lang.String key)java.lang.StringgetName(java.util.Locale locale)java.lang.StringgetOutputName()private java.io.File[]getReportFiles()-
Methods inherited from class org.apache.maven.reporting.AbstractMavenReport
closeReport, constructXrefLocation, execute, generate, generate, getCategoryName, getInputEncoding, getLocale, getOutputDirectory, getOutputEncoding, getProject, getReportOutputDirectory, getSink, getSinkFactory, getSiteRenderer, getXrefLocation, isExternalReport, setReportOutputDirectory
-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Field Detail
-
reportsDirectory
@Parameter(defaultValue="${project.build.directory}/invoker-reports", property="invoker.reportsDirectory") private java.io.File reportsDirectoryBase directory where all build reports have been written to.
-
i18n
protected final org.codehaus.plexus.i18n.I18N i18n
Internationalization component
-
-
Method Detail
-
executeReport
protected void executeReport(java.util.Locale locale) throws org.apache.maven.reporting.MavenReportException- Specified by:
executeReportin classorg.apache.maven.reporting.AbstractMavenReport- Throws:
org.apache.maven.reporting.MavenReportException
-
getI18nString
private java.lang.String getI18nString(java.util.Locale locale, java.lang.String key)- Parameters:
locale- The localekey- The key to search for- Returns:
- The text appropriate for the locale.
-
getName
public java.lang.String getName(java.util.Locale locale)
-
getDescription
public java.lang.String getDescription(java.util.Locale locale)
-
getOutputName
public java.lang.String getOutputName()
-
getReportFiles
private java.io.File[] getReportFiles()
-
canGenerateReport
public boolean canGenerateReport()
- Specified by:
canGenerateReportin interfaceorg.apache.maven.reporting.MavenReport- Overrides:
canGenerateReportin classorg.apache.maven.reporting.AbstractMavenReport
-
-