public class EmbeddedMojo
extends org.codehaus.mojo.exec.AbstractExecMojo
jndi.properties
file on the classpath to
way to bootstrap via GuiceModifier and Type | Field and Description |
---|---|
protected String |
duration
The duration to run the application for which by default is in milliseconds.
|
protected String |
jndiProperties
Allows to provide a custom properties file on the classpath to initialize
a
InitialContext object with. |
Constructor and Description |
---|
EmbeddedMojo() |
Modifier and Type | Method and Description |
---|---|
protected String[] |
createArguments() |
ClassLoader |
createClassLoader(ClassLoader parent) |
void |
execute()
This method will run the mojo
|
void |
executeWithoutWrapping() |
List<?> |
getClasspathElements() |
String |
getDuration() |
String |
getJndiProperties() |
String |
getMainClass() |
protected void |
runCamel(ClassLoader newLoader) |
void |
setClasspathElements(List<?> classpathElements) |
void |
setDuration(String duration) |
void |
setJndiProperties(String jndiProperties) |
void |
setMainClass(String mainClass) |
collectProjectArtifactsAndClasspath, hasCommandlineArgs, isSkip, parseCommandlineArgs, registerSourceRoots
protected String duration
protected String jndiProperties
InitialContext
object with. This corresponds to
the Main.setJndiProperties(String)
API
methodpublic void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void executeWithoutWrapping() throws MalformedURLException, ClassNotFoundException, NoSuchMethodException, IllegalAccessException, org.apache.maven.plugin.MojoExecutionException
MalformedURLException
ClassNotFoundException
NoSuchMethodException
IllegalAccessException
org.apache.maven.plugin.MojoExecutionException
public List<?> getClasspathElements()
public void setClasspathElements(List<?> classpathElements)
public String getDuration()
public void setDuration(String duration)
public String getMainClass()
public void setMainClass(String mainClass)
public String getJndiProperties()
public void setJndiProperties(String jndiProperties)
protected void runCamel(ClassLoader newLoader) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, org.apache.maven.plugin.MojoExecutionException
ClassNotFoundException
NoSuchMethodException
IllegalAccessException
org.apache.maven.plugin.MojoExecutionException
protected String[] createArguments()
public ClassLoader createClassLoader(ClassLoader parent) throws MalformedURLException
MalformedURLException
Apache Camel