public abstract class AbstractCatalinaInstalledLocalContainer extends AbstractInstalledLocalContainer
Constructor and Description |
---|
AbstractCatalinaInstalledLocalContainer(LocalConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
void |
doStart(org.apache.tools.ant.taskdefs.Java java) |
void |
doStop(org.apache.tools.ant.taskdefs.Java java) |
ContainerCapability |
getCapability() |
protected String |
getVersion(String defaultVersion)
Returns the version of the Tomcat installation.
|
protected void |
invokeContainer(String action,
org.apache.tools.ant.taskdefs.Java java)
Invokes the container bootstrap class to start or stop the container, depending on the value
of the provided argument.
|
addExtraClasspath, addSharedClasspath, addToolsJarToClasspath, getAntUtils, getExtraClasspath, getHome, getHttpUtils, getJdkUtils, getResourceUtils, getSharedClasspath, getSystemProperties, getType, ifPresentAddPathToList, setExtraClasspath, setHome, setJvmToLaunchContainerIn, setLogger, setSharedClasspath, setSystemProperties, startInternal, stopInternal, verify
getConfiguration, getFileHandler, getOutput, getState, getTimeout, isAppend, setAppend, setConfiguration, setFileHandler, setOutput, setState, setTimeout, start, stop, waitForCompletion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfiguration, getFileHandler, setConfiguration, setFileHandler
getOutput, getTimeout, isAppend, setAppend, setOutput, setTimeout, start, stop
public AbstractCatalinaInstalledLocalContainer(LocalConfiguration configuration)
protected final String getVersion(String defaultVersion)
defaultVersion
- default version to use if we cannot find out the exact Tomcat versionnull
if the version number could not be retrievedpublic ContainerCapability getCapability()
Container.getCapability()
public final void doStart(org.apache.tools.ant.taskdefs.Java java) throws Exception
doStart
in class AbstractInstalledLocalContainer
Exception
AbstractInstalledLocalContainer.doStart(Java)
public final void doStop(org.apache.tools.ant.taskdefs.Java java) throws Exception
doStop
in class AbstractInstalledLocalContainer
Exception
AbstractInstalledLocalContainer.doStop(Java)
protected final void invokeContainer(String action, org.apache.tools.ant.taskdefs.Java java) throws Exception
action
- Either 'start' or 'stop'java
- the prepared Ant Java command that will be executedException
- in case of container invocation errorCopyright © 2004-2013 Codehaus. All Rights Reserved.