org.apache.camel.maven
Class RunMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.exec.AbstractExecMojo
          extended by org.apache.camel.maven.RunMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class RunMojo
extends org.codehaus.mojo.exec.AbstractExecMojo

Runs a CamelContext using any Spring XML configuration files found in META-INF/spring/*.xml and camel-*.xml and starting up the context.


Field Summary
protected  String dotDir
          The DOT output directory name used to generate the DOT diagram of the route definitions
protected  String duration
          The duration to run the application for which by default is in milliseconds.
protected  org.apache.maven.project.MavenProject project
          The maven project.
protected  boolean useDot
          Allows the DOT file generation to be enabled
 
Fields inherited from class org.codehaus.mojo.exec.AbstractExecMojo
classpathScope
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
RunMojo()
           
 
Method Summary
 void execute()
          Execute goal.
 
Methods inherited from class org.codehaus.mojo.exec.AbstractExecMojo
collectProjectArtifactsAndClasspath, hasCommandlineArgs, parseCommandlineArgs, registerSourceRoots
 
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

project

protected org.apache.maven.project.MavenProject project
The maven project.


duration

protected String duration
The duration to run the application for which by default is in milliseconds. A value <= 0 will run forever. Adding a s indicates seconds - eg "5s" means 5 seconds.


dotDir

protected String dotDir
The DOT output directory name used to generate the DOT diagram of the route definitions


useDot

protected boolean useDot
Allows the DOT file generation to be enabled

Constructor Detail

RunMojo

public RunMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Execute goal.

Throws:
org.apache.maven.plugin.MojoExecutionException - execution of the main class or one of the threads it generated failed.
org.apache.maven.plugin.MojoFailureException - something bad happened...


Apache CAMEL