public abstract class AbstractDaemonMojo extends AbstractCargoMojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
daemonAutostartContainer
Tells if the container should autostart.
|
protected List<String> |
daemonClasspaths
The additional classpath entries the daemon should use.
|
protected DaemonClient |
daemonClient
The daemon client instance.
|
protected org.codehaus.cargo.container.InstalledLocalContainer |
daemonContainer
The container that should be started by the daemon.
|
protected List<org.codehaus.cargo.container.deployable.Deployable> |
daemonDeployables
The deployables to deploy.
|
protected String |
daemonHandleId
The daemon handle identifier to use.
|
CONTEXT_KEY_CLASSLOADER, CONTEXT_KEY_CONTAINER| Constructor and Description |
|---|
AbstractDaemonMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
doExecute()
Executes the plugin.
|
protected abstract void |
performAction()
Performs the actual action.
|
calculateContainerArtifactId, containsAutoDeployable, createAutoDeployDeployable, createConfiguration, createContainer, createDefaultContainerElementIfNecessary, createDefaultInstallerElementIfNecessary, createLogger, createNewContainer, execute, getCargoProject, getConfigurationElement, getContainerElement, getDaemon, getDeployablesElement, getDeployerElement, getFileHandler, isIgnoreFailures, setCargoProject, setConfigurationElement, setContainerElement, setDeployablesElement, setDeployerElement, setFileHandler, setIgnoreFailures, waitDeployableMonitorgetProjectprotected DaemonClient daemonClient
protected String daemonHandleId
protected boolean daemonAutostartContainer
protected List<String> daemonClasspaths
protected final List<org.codehaus.cargo.container.deployable.Deployable> daemonDeployables
protected org.codehaus.cargo.container.InstalledLocalContainer daemonContainer
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 abstract void performAction()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - If an error happensCopyright © 2004–2018 Github. All rights reserved.