|
|||||||||
| 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.apache.camel.guice.maven.DotMojo
public class DotMojo
Runs a Camel using the
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
| Field Summary | |
|---|---|
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 |
| 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 | |
|---|---|
DotMojo()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.apache.maven.reporting.AbstractMavenReport |
|---|
canGenerateReport, closeReport, 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 |
|---|
public static final String[] DEFAULT_GRAPHVIZ_OUTPUT_TYPES
protected static final String SUBDIRECTORY
protected String duration
protected boolean runCamel
protected boolean useDot
| Constructor Detail |
|---|
public DotMojo()
| Method Detail |
|---|
public String getDescription(Locale locale)
locale - report locale.
MavenReport.getDescription(java.util.Locale)public String getName(Locale locale)
MavenReport.getName(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.MojoExecutionException
protected void executeReport(Locale locale)
throws org.apache.maven.reporting.MavenReportException
executeReport in class org.apache.maven.reporting.AbstractMavenReportorg.apache.maven.reporting.MavenReportException
protected 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.DependencyResolutionRequiredException
protected void writeIndexHtmlFile(File dir,
String fileName,
String content)
throws IOException
IOException
protected 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 void close(Closeable closeable,
String description)
protected String convertFile(File file,
String format)
throws org.codehaus.plexus.util.cli.CommandLineException
org.codehaus.plexus.util.cli.CommandLineExceptionprotected String removeFileExtension(String name)
protected ResourceBundle getBundle(Locale locale)
locale - locale
protected 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.AbstractMavenReport
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||