|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.tomcat.AbstractI18NMojo
org.codehaus.mojo.tomcat.AbstractCatalinaMojo
org.codehaus.mojo.tomcat.AbstractWarCatalinaMojo
org.codehaus.mojo.tomcat.AbstractDeployMojo
public abstract class AbstractDeployMojo
Deploy a WAR to Tomcat.
| Field Summary |
|---|
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractDeployMojo()
|
|
| Method Summary | |
|---|---|
protected void |
deployContext()
Deploys the context XML file to Tomcat. |
protected void |
deployWar()
Deploys the WAR to Tomcat. |
protected void |
deployWarAndContext()
Deploys the WAR and context XML file to Tomcat. |
protected java.io.File |
getContextFile()
Gets the Tomcat context XML file. |
protected java.lang.String |
getTag()
Gets the Tomcat webapp tag name to use. |
protected abstract java.io.File |
getWarFile()
Gets the Tomcat WAR file. |
void |
invokeManager()
Invokes Tomcat manager when this Mojo is executed. |
protected boolean |
isUpdate()
Gets whether Tomcat should automatically undeploy webapps that already exist when deploying. |
protected void |
validateContextFile()
Ensures that the Tomcat context XML file exists and is indeed a file. |
protected abstract void |
validateWarFile()
Ensures that the Tomcat WAR file exists and is the correct type for the deployment mode. |
| Methods inherited from class org.codehaus.mojo.tomcat.AbstractWarCatalinaMojo |
|---|
execute, isWar |
| Methods inherited from class org.codehaus.mojo.tomcat.AbstractCatalinaMojo |
|---|
getDeployedURL, getManager, getPath, getURL, log |
| Methods inherited from class org.codehaus.mojo.tomcat.AbstractI18NMojo |
|---|
getMessage, getMessage, getMessage, getMessage |
| 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 |
|---|
public AbstractDeployMojo()
| Method Detail |
|---|
public void invokeManager()
throws org.apache.maven.plugin.MojoExecutionException,
TomcatManagerException,
java.io.IOException
AbstractCatalinaMojo
invokeManager in class AbstractCatalinaMojoorg.apache.maven.plugin.MojoExecutionException - if there was a problem executing this goal
TomcatManagerException - if the Tomcat manager request fails
java.io.IOException - if an i/o error occursprotected abstract java.io.File getWarFile()
protected abstract void validateWarFile()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - if the WAR file does not exist or is not
the correct type for the deployment modeprotected java.io.File getContextFile()
protected void validateContextFile()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - if the context file does not exist or is
not a fileprotected boolean isUpdate()
protected java.lang.String getTag()
protected void deployWar()
throws org.apache.maven.plugin.MojoExecutionException,
TomcatManagerException,
java.io.IOException
org.apache.maven.plugin.MojoExecutionException - if there was a problem locating the WAR
TomcatManagerException - if the Tomcat manager request fails
java.io.IOException - if an i/o error occurs
protected void deployContext()
throws org.apache.maven.plugin.MojoExecutionException,
TomcatManagerException,
java.io.IOException
org.apache.maven.plugin.MojoExecutionException - if there was a problem locating the
context XML file
TomcatManagerException - if the Tomcat manager request fails
java.io.IOException - if an i/o error occurs
protected void deployWarAndContext()
throws org.apache.maven.plugin.MojoExecutionException,
TomcatManagerException,
java.io.IOException
org.apache.maven.plugin.MojoExecutionException - if there was a problem locating either the
WAR or the context XML file
TomcatManagerException - if the Tomcat manager request fails
java.io.IOException - if an i/o error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||