org.apache.camel.guice.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.guice.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 Camel using the jndi.properties file on the classpath as the way to bootstrap Camel using Guice


Field Summary
protected  String dotDir
          The DOT output directory name used to generate the DOT diagram of the route definitions
protected  boolean dotEnabled
          Allows the DOT file generation to be disabled
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.
 
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


dotEnabled

protected boolean dotEnabled
Allows the DOT file generation to be disabled

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...


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.