|
|||||||||
| 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.jdepend.JDependMojo
hudson.plugins.jdepend.JDependReporter
public class JDependReporter
A subclass of JDepend Mojo to create a sink outside of the Maven architecture and generate a report.
| Field Summary | |
|---|---|
protected JDependParser |
xmlParser
|
| 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 | |
|---|---|
JDependReporter(JDependParser xmlParser)
Create a new report from the parsed JDepend report |
|
| Method Summary | |
|---|---|
void |
generateReport(Locale locale)
Deprecated. Use getReport() instead |
protected ResourceBundle |
getBundle()
|
String |
getReport()
Get the HTML report. |
String |
getReport(Locale locale)
Get the HTML report. |
protected String |
tidyHtmlStream(ByteArrayOutputStream htmlStream)
Tidies up the HTML, as the JDepend Sink outputs the HTML all on one line, which is yucky. |
| Methods inherited from class org.codehaus.mojo.jdepend.JDependMojo |
|---|
canGenerateReport, executeReport, getArgument, getClassDirectory, getDescription, getName, getOutputDirectory, getOutputName, getProject, getProjectDirectory, getReportFile, getSiteRenderer, setArgument, setClassDirectory, setOutputDirectory, setProject, setProjectDirectory, setReportFile, setSiteRenderer |
| Methods inherited from class org.apache.maven.reporting.AbstractMavenReport |
|---|
closeReport, execute, 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 JDependParser xmlParser
| Constructor Detail |
|---|
public JDependReporter(JDependParser xmlParser)
xmlParser - A parsed JDepend report| Method Detail |
|---|
public void generateReport(Locale locale)
throws org.apache.maven.reporting.MavenReportException
generateReport in class org.codehaus.mojo.jdepend.JDependMojoorg.apache.maven.reporting.MavenReportExceptiongetReport()protected String tidyHtmlStream(ByteArrayOutputStream htmlStream)
htmlStream -
public String getReport()
throws org.apache.maven.reporting.MavenReportException
org.apache.maven.reporting.MavenReportException - when something bad happens
public String getReport(Locale locale)
throws org.apache.maven.reporting.MavenReportException
locale -
org.apache.maven.reporting.MavenReportExceptionprotected ResourceBundle getBundle()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||