|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.apache.maven.reporting.AbstractMavenReport
org.codehaus.mojo.emma.EmmaReportMojo
public class EmmaReportMojo
Instruments, tests, and generates an EMMA report.
Field Summary | |
---|---|
protected String |
columns
Specifies which report columns and in which order to use for report generation, as a comma-separated list of column ids. |
protected File[] |
dataFiles
Class coverage data files. |
protected String |
depth
Specifies the amount of detail to be included in the generated coverage reports. |
protected File |
metadataFile
Location to store class coverage metadata. |
protected String |
metrics
Specifies the threshold coverage metrics values for a given set of columns. |
protected File |
outputDirectory
Output directory for the report. |
protected String |
outputEncoding
Report encoding. |
protected List |
pluginClasspath
Plugin classpath. |
protected org.apache.maven.project.MavenProject |
project
Maven project. |
protected org.apache.maven.doxia.siterenderer.Renderer |
siteRenderer
Site renderer. |
protected String |
sort
Specifies report column sorting order, as a comma-separated list of columns ids prefixed with "+" for ascending or "-" for descending directions. |
protected File[] |
sourcePaths
Source locations. |
protected boolean |
verbose
Sets EMMA verbosity level to verbose . |
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 | |
---|---|
EmmaReportMojo()
|
Method Summary | |
---|---|
boolean |
canGenerateReport()
Checks if the report can be generated. |
protected void |
checkParameters()
Check parameters. |
protected void |
executeReport(Locale locale)
Executes the report for a specific locale. |
String |
getDescription(Locale locale)
Gets the description in the specified locale. |
String |
getName(Locale locale)
Gets the name in the specified locale. |
protected String |
getOutputDirectory()
Gets the output directory. |
String |
getOutputName()
Gets the output name. |
protected org.apache.maven.project.MavenProject |
getProject()
Gets the maven project. |
protected ResourceBundle |
getResourceBundle(Locale locale)
Gets the resource bundle for the specified locale. |
protected org.apache.maven.doxia.siterenderer.Renderer |
getSiteRenderer()
Gets the site renderer. |
boolean |
isExternalReport()
Returns true as this is an external report. |
Methods inherited from class org.apache.maven.reporting.AbstractMavenReport |
---|
closeReport, execute, generate, generate, generate, getCategoryName, getReportOutputDirectory, getSink, getSinkFactory, 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 File outputDirectory
protected File[] sourcePaths
protected File metadataFile
protected File[] dataFiles
protected String outputEncoding
protected String depth
all
, package
, source
, class
, method
.
protected String columns
protected String sort
protected String metrics
protected boolean verbose
verbose
.
protected org.apache.maven.project.MavenProject project
protected List pluginClasspath
protected org.apache.maven.doxia.siterenderer.Renderer siteRenderer
Constructor Detail |
---|
public EmmaReportMojo()
Method Detail |
---|
protected void checkParameters() throws org.apache.maven.reporting.MavenReportException
org.apache.maven.reporting.MavenReportException
- if any parameters are wrongprotected void executeReport(Locale locale) throws org.apache.maven.reporting.MavenReportException
executeReport
in class org.apache.maven.reporting.AbstractMavenReport
locale
- the locale.
org.apache.maven.reporting.MavenReportException
- if something goes wrong.protected String getOutputDirectory()
getOutputDirectory
in class org.apache.maven.reporting.AbstractMavenReport
protected org.apache.maven.project.MavenProject getProject()
getProject
in class org.apache.maven.reporting.AbstractMavenReport
protected org.apache.maven.doxia.siterenderer.Renderer getSiteRenderer()
getSiteRenderer
in class org.apache.maven.reporting.AbstractMavenReport
public String getDescription(Locale locale)
locale
- the locale.
public String getName(Locale locale)
locale
- the locale.
public String getOutputName()
public boolean isExternalReport()
true
as this is an external report.
isExternalReport
in interface org.apache.maven.reporting.MavenReport
isExternalReport
in class org.apache.maven.reporting.AbstractMavenReport
true
as this is an external report.public boolean canGenerateReport()
canGenerateReport
in interface org.apache.maven.reporting.MavenReport
canGenerateReport
in class org.apache.maven.reporting.AbstractMavenReport
true
if the report can be generated.protected ResourceBundle getResourceBundle(Locale locale)
locale
- the locale.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |