org.codehaus.mojo.tomcat
Class AbstractRunMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.tomcat.AbstractI18NMojo
org.codehaus.mojo.tomcat.AbstractRunMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- RunMojo, RunWarMojo
public abstract class AbstractRunMojo
- extends AbstractI18NMojo
Abstract goal that provides common configuration for embedded Tomcat goals.
- Version:
- $Id: AbstractRunMojo.java 6588 2008-03-28 12:22:57Z bentmann $
- Author:
- Jurgen Lust, Mark Hobson
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Method Summary |
protected abstract org.apache.catalina.Context |
createContext(org.apache.catalina.startup.Embedded container)
Gets the context to run this web application under for the specified embedded Tomcat. |
void |
execute()
|
protected String |
getPath()
Gets the webapp context path to use for the web application being run. |
protected boolean |
isWar()
Gets whether this project uses WAR packaging. |
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 |
AbstractRunMojo
public AbstractRunMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
getPath
protected String getPath()
- Gets the webapp context path to use for the web application being run.
- Returns:
- the webapp context path
createContext
protected abstract org.apache.catalina.Context createContext(org.apache.catalina.startup.Embedded container)
throws IOException
- Gets the context to run this web application under for the specified embedded Tomcat.
- Parameters:
container
- the embedded Tomcat container being used
- Returns:
- the context to run this web application under
- Throws:
IOException
- if the context could not be created
isWar
protected boolean isWar()
- Gets whether this project uses WAR packaging.
- Returns:
- whether this project uses WAR packaging
Copyright © 2005-2011 Codehaus. All Rights Reserved.