org.apache.tomcat.maven.plugin.tomcat7.run
Class RunMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.tomcat.maven.plugin.tomcat7.AbstractTomcat7Mojo
org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo
org.apache.tomcat.maven.plugin.tomcat7.run.RunMojo
- All Implemented Interfaces:
- ContextEnabled, Mojo
public class RunMojo
- extends AbstractRunMojo
Runs the current project as a dynamic web application using an embedded Tomcat server.
- Since:
- 2.0
- Author:
- Olivier Lamy
- Is defined to be executed in:
- phase:
- compile
- Is defined by the goal name:
- run
- Requires the dependencies in this specified scope:
- runtime
Field Summary |
protected int |
backgroundProcessorDelay
represents the delay in seconds between each classPathScanning change invocation |
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
backgroundProcessorDelay
protected int backgroundProcessorDelay
- represents the delay in seconds between each classPathScanning change invocation
- See Also:
- http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
- Is defined by:
- expression:
- ${maven.tomcat.backgroundProcessorDelay}
- default-value:
- -1
RunMojo
public RunMojo()
getDocBase
protected File getDocBase()
- Gets the webapp directory to run.
- Specified by:
getDocBase
in class AbstractRunMojo
- Returns:
- the webapp directory
getContextFile
protected File getContextFile()
throws MojoExecutionException
- Gets the Tomcat context XML file to use.
- Specified by:
getContextFile
in class AbstractRunMojo
- Returns:
- the context XML file
- Throws:
MojoExecutionException
createWebappLoader
protected WebappLoader createWebappLoader()
throws IOException,
MojoExecutionException
- Gets the webapp loader to run this web application under.
- Overrides:
createWebappLoader
in class AbstractRunMojo
- Returns:
- the webapp loader to use
- Throws:
MojoExecutionException
IOException
- if the webapp loader could not be created
Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.