org.apache.tomcat.maven.plugin.tomcat6
Class InplaceMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.tomcat.maven.plugin.tomcat6.AbstractI18NTomcat6Mojo
org.apache.tomcat.maven.plugin.tomcat6.AbstractCatalinaMojo
org.apache.tomcat.maven.plugin.tomcat6.AbstractWarCatalinaMojo
org.apache.tomcat.maven.plugin.tomcat6.AbstractDeployMojo
org.apache.tomcat.maven.plugin.tomcat6.InplaceMojo
- All Implemented Interfaces:
- ContextEnabled, Mojo
public class InplaceMojo
- extends AbstractDeployMojo
Deploy a WAR in-place to Tomcat.
- Version:
- $Id: InplaceMojo.html 1305321 2012-03-26 12:01:12Z olamy $
- Author:
- Mark Hobson
- Is defined by the goal name:
- inplace
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Method Summary |
protected File |
getWarFile()
Gets the Tomcat WAR file. |
protected void |
validateWarFile()
Ensures that the Tomcat WAR file exists and is the correct type for the deployment mode. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InplaceMojo
public InplaceMojo()
getWarFile
protected File getWarFile()
- Gets the Tomcat WAR file. This may be a file or a directory depending on the deployment mode.
- Specified by:
getWarFile
in class AbstractDeployMojo
- Returns:
- the Tomcat WAR file.
validateWarFile
protected void validateWarFile()
throws MojoExecutionException
- Ensures that the Tomcat WAR file exists and is the correct type for the deployment mode.
- Specified by:
validateWarFile
in class AbstractDeployMojo
- Throws:
MojoExecutionException
- if the WAR file does not exist or is not the correct type for the deployment mode
Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.