public class DotMojo
extends org.apache.maven.reporting.AbstractMavenReport
jndi.properties file on the classpath to
way to bootstrap via Guice
then the DOT files are created, then they are converted from DOT files to another format such as PNG| Modifier and Type | Field and Description |
|---|---|
static String[] |
DEFAULT_GRAPHVIZ_OUTPUT_TYPES |
protected String |
duration
The duration to run the application for which by default is in
milliseconds.
|
protected boolean |
runCamel
Whether we should boot up camel with the jndi.properties file to
generate the DOT file
|
protected static 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(Closeable closeable,
String description) |
protected String |
convertFile(File file,
String format) |
void |
execute() |
protected void |
execute(File outputDir,
Locale locale)
Executes DOT generator.
|
protected void |
executeReport(Locale locale) |
String |
getAggregate() |
protected ResourceBundle |
getBundle(Locale locale)
Gets resource bundle for given locale.
|
String |
getDescription(Locale locale) |
String |
getName(Locale locale) |
protected String |
getOutputDirectory() |
String |
getOutputName() |
protected org.apache.maven.project.MavenProject |
getProject() |
protected org.apache.maven.doxia.siterenderer.Renderer |
getSiteRenderer() |
boolean |
isUseDot() |
protected void |
printHtmlFileFooter(PrintWriter out,
File file) |
protected void |
printHtmlFileHeader(PrintWriter out,
File file) |
protected void |
printHtmlFooter(PrintWriter out) |
protected void |
printHtmlHeader(PrintWriter out,
String contextName) |
protected String |
removeFileExtension(String name) |
protected void |
runCamelEmbedded(File outputDir) |
void |
setAggregate(String aggregate) |
void |
setUseDot(boolean useDot) |
protected void |
writeIndexHtmlFile(File dir,
String fileName,
String content) |
canGenerateReport, closeReport, generate, getCategoryName, getReportOutputDirectory, getSink, isExternalReport, setReportOutputDirectorypublic static final String[] DEFAULT_GRAPHVIZ_OUTPUT_TYPES
protected static final String SUBDIRECTORY
protected String duration
protected boolean runCamel
protected boolean useDot
public String getDescription(Locale locale)
locale - report locale.MavenReport.getDescription(java.util.Locale)public String getOutputName()
public String getAggregate()
public void setAggregate(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(Locale locale) throws org.apache.maven.reporting.MavenReportException
executeReport in class org.apache.maven.reporting.AbstractMavenReportorg.apache.maven.reporting.MavenReportExceptionprotected void execute(File outputDir, 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(File outputDir) throws org.apache.maven.artifact.DependencyResolutionRequiredException
org.apache.maven.artifact.DependencyResolutionRequiredExceptionprotected void writeIndexHtmlFile(File dir, String fileName, String content) throws IOException
IOExceptionprotected void printHtmlHeader(PrintWriter out, String contextName)
protected void printHtmlFileHeader(PrintWriter out, File file)
protected void printHtmlFileFooter(PrintWriter out, File file)
protected void printHtmlFooter(PrintWriter out)
protected String convertFile(File file, String format) throws org.codehaus.plexus.util.cli.CommandLineException
org.codehaus.plexus.util.cli.CommandLineExceptionprotected ResourceBundle getBundle(Locale locale)
locale - localeprotected org.apache.maven.doxia.siterenderer.Renderer getSiteRenderer()
getSiteRenderer in class org.apache.maven.reporting.AbstractMavenReportprotected String getOutputDirectory()
getOutputDirectory in class org.apache.maven.reporting.AbstractMavenReportprotected org.apache.maven.project.MavenProject getProject()
getProject in class org.apache.maven.reporting.AbstractMavenReportApache Camel