org.apache.tomcat.maven.plugin.tomcat6
Class AbstractRunWarMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.tomcat.maven.plugin.tomcat6.AbstractI18NTomcat6Mojo
          extended by org.apache.tomcat.maven.plugin.tomcat6.AbstractRunMojo
              extended by org.apache.tomcat.maven.plugin.tomcat6.AbstractRunWarMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
RunWarMojo, RunWarOnlyMojo

public abstract class AbstractRunWarMojo
extends AbstractRunMojo

Runs the current project as a packaged web application using an embedded Tomcat server.

Author:
Mark Hobson

Field Summary
 
Fields inherited from class org.apache.tomcat.maven.plugin.tomcat6.AbstractRunMojo
artifactFactory, artifactResolver, classLoaderClass, contextReloadable, project, skip, useSeparateTomcatClassLoader
 
Fields inherited from class org.apache.tomcat.maven.plugin.tomcat6.AbstractI18NTomcat6Mojo
messagesProvider, path
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractRunWarMojo()
           
 
Method Summary
protected  File getContextFile()
          Gets the Tomcat context XML file to use.
protected  File getDocBase()
          Gets the webapp directory to run.
 
Methods inherited from class org.apache.tomcat.maven.plugin.tomcat6.AbstractRunMojo
createContext, createWebappLoader, execute, getArtifact, getPath, getProjectArtifacts, getTomcatClassLoader, isContextReloadable, isWar
 
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

AbstractRunWarMojo

public AbstractRunWarMojo()
Method Detail

getDocBase

protected File getDocBase()
Gets the webapp directory to run.

Specified by:
getDocBase in class AbstractRunMojo
Returns:
the webapp directory

getContextFile

protected File getContextFile()
Gets the Tomcat context XML file to use.

Specified by:
getContextFile in class AbstractRunMojo
Returns:
the context XML file


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.