org.apache.tomcat.maven.plugin.tomcat7
Class AbstractTomcat7Mojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.tomcat.maven.plugin.tomcat7.AbstractTomcat7Mojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AbstractCatalinaMojo, AbstractExecWarMojo, AbstractRunMojo, ShutdownMojo

public abstract class AbstractTomcat7Mojo
extends org.apache.maven.plugin.AbstractMojo

Since:
2.0
Author:
Olivier Lamy

Field Summary
protected  MessagesProvider messagesProvider
           
protected  String path
          The webapp context path to use for the web application being run.
protected  org.apache.maven.settings.Settings settings
           
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractTomcat7Mojo()
           
 
Method Summary
protected  void checkTomcatResponse(TomcatManagerResponse tomcatResponse)
          Check response of Tomcat to know if ok or not.
protected  String getPath()
           
 
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
 
Methods inherited from interface org.apache.maven.plugin.Mojo
execute
 

Field Detail

settings

@Component
protected org.apache.maven.settings.Settings settings

messagesProvider

@Component
protected MessagesProvider messagesProvider

path

@Parameter(defaultValue="/${project.artifactId}",
           property="maven.tomcat.path",
           required=true)
protected String path
The webapp context path to use for the web application being run. This must always start with a forward-slash ('/').

Constructor Detail

AbstractTomcat7Mojo

public AbstractTomcat7Mojo()
Method Detail

getPath

protected String getPath()

checkTomcatResponse

protected void checkTomcatResponse(TomcatManagerResponse tomcatResponse)
                            throws org.apache.maven.plugin.MojoExecutionException
Check response of Tomcat to know if ok or not.

Parameters:
tomcatResponse - response of tomcat return by TomcatManager class
Throws:
org.apache.maven.plugin.MojoExecutionException - if HTTP status code greater than 400 (included)


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.