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

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

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

olamy: as long as maven plugin descriptor metadata generation doesn't support annotations outside of the same project, we must have those fields here

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
AbstractI18NTomcat6Mojo()
           
 
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(role=MessagesProvider.class)
protected MessagesProvider messagesProvider

path

@Parameter(property="maven.tomcat.path",
           defaultValue="/${project.artifactId}",
           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

AbstractI18NTomcat6Mojo

public AbstractI18NTomcat6Mojo()
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.