public class DotMojo
extends org.apache.maven.reporting.AbstractMavenReport
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
applicationContextUri
The classpath based application context uri that spring wants to get.
|
static java.lang.String[] |
DEFAULT_GRAPHVIZ_OUTPUT_TYPES |
protected java.lang.String |
duration
The duration to run the application for which by default is in
milliseconds.
|
protected java.lang.String |
fileApplicationContextUri
The filesystem based application context uri that spring wants to get.
|
protected boolean |
runCamel
Whether we should boot up camel with the META-INF/services/*.xml to
generate the DOT file
|
protected static java.lang.String |
SUBDIRECTORY
Subdirectory for report.
|
protected boolean |
useDot
Should we try run the DOT executable on the generated .DOT file to
generate images
|
| Constructor and Description |
|---|
DotMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
close(java.io.Closeable closeable,
java.lang.String description) |
protected java.lang.String |
convertFile(java.io.File file,
java.lang.String format) |
void |
execute() |
protected void |
execute(java.io.File outputDir,
java.util.Locale locale)
Executes DOT generator.
|
protected void |
executeReport(java.util.Locale locale) |
java.lang.String |
getAggregate() |
protected java.util.ResourceBundle |
getBundle(java.util.Locale locale)
Gets resource bundle for given locale.
|
java.lang.String |
getDescription(java.util.Locale locale) |
java.lang.String |
getName(java.util.Locale locale) |
protected java.lang.String |
getOutputDirectory() |
java.lang.String |
getOutputName() |
protected org.apache.maven.project.MavenProject |
getProject() |
protected org.apache.maven.doxia.siterenderer.Renderer |
getSiteRenderer() |
boolean |
isUseDot() |
protected void |
printHtmlFileFooter(java.io.PrintWriter out,
java.io.File file) |
protected void |
printHtmlFileHeader(java.io.PrintWriter out,
java.io.File file) |
protected void |
printHtmlFooter(java.io.PrintWriter out) |
protected void |
printHtmlHeader(java.io.PrintWriter out,
java.lang.String contextName) |
protected java.lang.String |
removeFileExtension(java.lang.String name) |
protected void |
runCamelEmbedded(java.io.File outputDir) |
void |
setAggregate(java.lang.String aggregate) |
void |
setUseDot(boolean useDot) |
protected void |
writeIndexHtmlFile(java.io.File dir,
java.lang.String fileName,
java.lang.String content) |
canGenerateReport, closeReport, generate, getCategoryName, getReportOutputDirectory, getSink, isExternalReport, setReportOutputDirectorypublic static final java.lang.String[] DEFAULT_GRAPHVIZ_OUTPUT_TYPES
protected static final java.lang.String SUBDIRECTORY
protected java.lang.String duration
protected boolean runCamel
protected boolean useDot
protected java.lang.String applicationContextUri
protected java.lang.String fileApplicationContextUri
public java.lang.String getDescription(java.util.Locale locale)
locale - report locale.MavenReport.getDescription(Locale)public java.lang.String getName(java.util.Locale locale)
MavenReport.getName(Locale)public java.lang.String getOutputName()
public java.lang.String getAggregate()
public void setAggregate(java.lang.String aggregate)
public boolean isUseDot()
public void setUseDot(boolean useDot)
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
execute in interface org.apache.maven.plugin.Mojoexecute in class org.apache.maven.reporting.AbstractMavenReportorg.apache.maven.plugin.MojoExecutionExceptionprotected void executeReport(java.util.Locale locale)
throws org.apache.maven.reporting.MavenReportException
executeReport in class org.apache.maven.reporting.AbstractMavenReportorg.apache.maven.reporting.MavenReportExceptionprotected void execute(java.io.File outputDir,
java.util.Locale locale)
throws org.apache.maven.plugin.MojoExecutionException
outputDir - report output directory.locale - report locale.org.apache.maven.plugin.MojoExecutionException - if there were any execution errors.protected void runCamelEmbedded(java.io.File outputDir)
throws DependencyResolutionRequiredException
DependencyResolutionRequiredExceptionprotected void writeIndexHtmlFile(java.io.File dir,
java.lang.String fileName,
java.lang.String content)
throws java.io.IOException
java.io.IOExceptionprotected void printHtmlHeader(java.io.PrintWriter out,
java.lang.String contextName)
protected void printHtmlFileHeader(java.io.PrintWriter out,
java.io.File file)
protected void printHtmlFileFooter(java.io.PrintWriter out,
java.io.File file)
protected void printHtmlFooter(java.io.PrintWriter out)
protected void close(java.io.Closeable closeable,
java.lang.String description)
protected java.lang.String convertFile(java.io.File file,
java.lang.String format)
throws org.codehaus.plexus.util.cli.CommandLineException
org.codehaus.plexus.util.cli.CommandLineExceptionprotected java.lang.String removeFileExtension(java.lang.String name)
protected java.util.ResourceBundle getBundle(java.util.Locale locale)
locale - localeprotected org.apache.maven.doxia.siterenderer.Renderer getSiteRenderer()
getSiteRenderer in class org.apache.maven.reporting.AbstractMavenReportprotected java.lang.String getOutputDirectory()
getOutputDirectory in class org.apache.maven.reporting.AbstractMavenReportprotected org.apache.maven.project.MavenProject getProject()
getProject in class org.apache.maven.reporting.AbstractMavenReportCopyright © 2007-2014 Red Hat, Inc.. All Rights Reserved.