org.apache.tomcat.maven.plugin.tomcat7.run
Class AbstractRunWarMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.tomcat.maven.plugin.tomcat7.AbstractTomcat7Mojo
          extended by org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo
              extended by org.apache.tomcat.maven.plugin.tomcat7.run.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.tomcat7.run.AbstractRunMojo
aliases, classLoaderClass, contextReloadable, factory, hostName, project, propertiesPortFilePath, resolver, session, skip, useSeparateTomcatClassLoader
 
Fields inherited from class org.apache.tomcat.maven.plugin.tomcat7.AbstractTomcat7Mojo
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.tomcat7.run.AbstractRunMojo
createContext, createWebappLoader, execute, getArtifact, getPath, getProjectArtifacts, getTomcatClassLoader, isContextReloadable, isWar, parseContextFile
 
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.