|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.maven.util.report.MavenExternalReportFactory
public class MavenExternalReportFactory
Factory to create external reports within a Maven project.
Field Summary | |
---|---|
static String |
MAVEN_COBERTURA_PLUGIN The artifact ID of the cobertura plugin. |
static String |
MAVEN_JAVADOC_PLUGIN The artifact ID of the Javadoc plugin. |
static String |
MAVEN_JXR_PLUGIN The artifact ID of the jxr plugin. |
static String |
MAVEN_SUREFIRE_PLUGIN The artifact ID of the surefire plugin. |
Constructor Summary | |
---|---|
MavenExternalReportFactory(Log log, MavenProject project, String reportRelDir) Default constructor. |
|
MavenExternalReportFactory(MavenProject project, String reportRelDir) Convenience constructor using no logging. |
Method Summary | |
---|---|
ExternalReport |
createExternalReport(ReportId reportId, LinkConstructorStrategy strategy) Constructs an external report. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String MAVEN_SUREFIRE_PLUGIN
The value of this constant is "maven-surefire-report-plugin".
"maven-surefire-report-plugin"
public static final String MAVEN_JAVADOC_PLUGIN
The value of this constant is "maven-javadoc-plugin".
"maven-javadoc-plugin"
public static final String MAVEN_JXR_PLUGIN
The value of this constant is "maven-jxr-plugin".
"maven-jxr-plugin"
public static final String MAVEN_COBERTURA_PLUGIN
The value of this constant is "maven-cobertura-plugin".
"maven-cobertura-plugin"
Constructor Detail |
---|
public MavenExternalReportFactory(MavenProject project, String reportRelDir) throws IllegalArgumentException
project
- the Maven project.
reportRelDir
- the project's relative path within the project.
IllegalArgumentException
- if
project
is
null
or
reportRelDir
is
null
or contains only whitespaces.
public MavenExternalReportFactory(Log log, MavenProject project, String reportRelDir) throws IllegalArgumentException
log
- the Maven logger to use.
project
- the Maven project.
reportRelDir
- the project's relative path within the project.
IllegalArgumentException
- if
project
is
null
or
reportRelDir
is
null
or contains only whitespaces.
Method Detail |
---|
public ExternalReport createExternalReport(ReportId reportId, LinkConstructorStrategy strategy)
createExternalReport
in interface
ExternalReportFactory
reportId
- the identifier of the external report to create.
strategy
- the strategy of the report.
null
if no report data is provided.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |