public class ContainerStartMojo extends AbstractCargoMojo
| Modifier and Type | Field and Description |
|---|---|
protected org.codehaus.cargo.container.LocalContainer |
localContainer
Local container.
|
CONTEXT_KEY_CONTAINER| Constructor and Description |
|---|
ContainerStartMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAutoDeployDeployable(org.codehaus.cargo.container.LocalContainer container)
If the project's packaging is war, ear or ejb and there is no deployer specified and the user
has not defined the auto-deployable inside the
<deployables> element, then
add the generated artifact to the list of deployables to deploy statically. |
void |
doExecute()
Executes the plugin.
|
protected void |
executeLocalContainerAction()
Executes the local container action.
|
calculateContainerArtifactId, containsAutoDeployable, createAutoDeployDeployable, createConfiguration, createContainer, createDefaultContainerElementIfNecessary, createDefaultInstallerElementIfNecessary, createLogger, createNewContainer, execute, getCargoProject, getConfigurationElement, getContainerElement, getDaemon, getDeployablesElement, getDeployerElement, getFileHandler, setCargoProject, setConfigurationElement, setContainerElement, setDeployablesElement, setDeployerElement, setFileHandler, waitDeployableMonitorgetProjectprotected org.codehaus.cargo.container.LocalContainer localContainer
public void doExecute()
throws org.apache.maven.plugin.MojoExecutionException
This method must be implemented by all Mojos extending this class. The reason for this
pattern is because we want the AbstractCargoMojo.execute() method to always be called so that
necessary plugin initialization can be performed. Without this pattern Mojos extending this
class could "forget" to call super.execute() thus leading to unpredictible
results.
doExecute in class AbstractCargoMojoorg.apache.maven.plugin.MojoExecutionException - in case of errorprotected void executeLocalContainerAction()
protected void addAutoDeployDeployable(org.codehaus.cargo.container.LocalContainer container)
throws org.apache.maven.plugin.MojoExecutionException
<deployables> element, then
add the generated artifact to the list of deployables to deploy statically.
Note that the reason we check that a deployer element has not been specified is because if it
has then the auto deployable will be deployed by the specified deployer.container - the local container to which to add the project's artifactorg.apache.maven.plugin.MojoExecutionException - if an error occursCopyright © 2004–2016 Github. All rights reserved.