|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
public abstract class AbstractDeployMojo
Deploy a WAR to Tomcat.
Field Summary |
---|
Fields inherited from class org.apache.tomcat.maven.plugin.tomcat6.AbstractI18NTomcat6Mojo |
---|
messagesProvider, path |
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 File |
getContextFile()
Gets the Tomcat context XML file. |
protected String |
getTag()
Gets the Tomcat webapp tag name to use. |
protected abstract 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.apache.tomcat.maven.plugin.tomcat6.AbstractWarCatalinaMojo |
---|
execute, isWar |
Methods inherited from class org.apache.tomcat.maven.plugin.tomcat6.AbstractCatalinaMojo |
---|
getDeployedURL, getManager, getPath, getURL, log |
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 MojoExecutionException, TomcatManagerException, IOException
invokeManager
in class AbstractCatalinaMojo
MojoExecutionException
- if there was a problem executing this goal
TomcatManagerException
- if the Tomcat manager request fails
IOException
- if an i/o error occursprotected abstract File getWarFile()
protected abstract void validateWarFile() throws MojoExecutionException
MojoExecutionException
- if the WAR file does not exist or is not the correct type for the deployment modeprotected File getContextFile()
protected void validateContextFile() throws MojoExecutionException
MojoExecutionException
- if the context file does not exist or is not a fileprotected boolean isUpdate()
protected String getTag()
protected void deployWar() throws MojoExecutionException, TomcatManagerException, IOException
MojoExecutionException
- if there was a problem locating the WAR
TomcatManagerException
- if the Tomcat manager request fails
IOException
- if an i/o error occursprotected void deployContext() throws MojoExecutionException, TomcatManagerException, IOException
MojoExecutionException
- if there was a problem locating the context XML file
TomcatManagerException
- if the Tomcat manager request fails
IOException
- if an i/o error occursprotected void deployWarAndContext() throws MojoExecutionException, TomcatManagerException, IOException
MojoExecutionException
- if there was a problem locating either the WAR or the context XML file
TomcatManagerException
- if the Tomcat manager request fails
IOException
- if an i/o error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |