org.codehaus.mojo.tomcat
Class AbstractRunMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.tomcat.AbstractI18NMojo
          extended by 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

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractRunMojo()
           
 
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  java.lang.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.codehaus.mojo.tomcat.AbstractI18NMojo
getMessage, getMessage, getMessage, getMessage
 
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
 

Constructor Detail

AbstractRunMojo

public AbstractRunMojo()
Method Detail

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 java.lang.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 java.io.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:
java.io.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-2009. All Rights Reserved.