org.codehaus.cargo.container.tomcat
Class TomcatCopyingInstalledLocalDeployer
java.lang.Object
org.codehaus.cargo.util.log.LoggedObject
org.codehaus.cargo.container.spi.deployer.AbstractDeployer
org.codehaus.cargo.container.spi.deployer.AbstractLocalDeployer
org.codehaus.cargo.container.spi.deployer.AbstractInstalledLocalDeployer
org.codehaus.cargo.container.spi.deployer.AbstractCopyingInstalledLocalDeployer
org.codehaus.cargo.container.tomcat.TomcatCopyingInstalledLocalDeployer
- All Implemented Interfaces:
- org.codehaus.cargo.container.deployer.Deployer, org.codehaus.cargo.util.log.Loggable
- public class TomcatCopyingInstalledLocalDeployer
- extends org.codehaus.cargo.container.spi.deployer.AbstractCopyingInstalledLocalDeployer
Static deployer that deploys WARs to the Tomcat webapps
directory.
- Version:
- $Id: TomcatCopyingInstalledLocalDeployer.java 1160 2006-07-30 20:15:34Z vmassol $
Method Summary |
protected void |
deployExpandedWar(java.lang.String deployableDir,
org.codehaus.cargo.container.deployable.WAR war)
We override the default implementation from AbstractCopyingInstalledLocalDeployer in
order to handle the special Tomcat scenarios: if the deployable is a TomcatWAR
instance and it contains a context.xml file that we need to manually copy. |
protected void |
deployWar(java.lang.String deployableDir,
org.codehaus.cargo.container.deployable.WAR war)
We override the default implementation from AbstractCopyingInstalledLocalDeployer in
order to handle the special Tomcat scenarios: if the deployable is a TomcatWAR
instance and it containts a context.xml file that we need to manually copy. |
java.lang.String |
getDeployableDir()
Specifies the directory Deployable s should
be copied to. |
void |
setShouldCopyWars(boolean shouldCopyWars)
Whether the local deployer should copy the wars to tbe Tomcat webapps directory. |
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractCopyingInstalledLocalDeployer |
canBeDeployed, deploy, deployEar, deployEjb, setShouldDeployExpandedWARs |
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractInstalledLocalDeployer |
getType |
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractLocalDeployer |
getContainer, getFileHandler, setFileHandler |
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractDeployer |
deploy, deploy, redeploy, start, stop, undeploy |
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject |
getLogger, setLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.codehaus.cargo.util.log.Loggable |
getLogger, setLogger |
TomcatCopyingInstalledLocalDeployer
public TomcatCopyingInstalledLocalDeployer(org.codehaus.cargo.container.InstalledLocalContainer container)
- {@inheritDoc}
- See Also:
AbstractCopyingInstalledLocalDeployer.AbstractCopyingInstalledLocalDeployer(InstalledLocalContainer)
getDeployableDir
public java.lang.String getDeployableDir()
- Specifies the directory
Deployable
s should
be copied to. For Tomcat this is the webapps
directory.
- Returns:
- Deployable the directory to deploy to
setShouldCopyWars
public void setShouldCopyWars(boolean shouldCopyWars)
- Whether the local deployer should copy the wars to tbe Tomcat webapps directory. This is
because Tomcat standalone configuration may not want to copy wars and instead configure
server.xml to point to where the wars are located instead of copying them.
- Parameters:
shouldCopyWars
- true if the wars should be copied
deployWar
protected void deployWar(java.lang.String deployableDir,
org.codehaus.cargo.container.deployable.WAR war)
- We override the default implementation from
AbstractCopyingInstalledLocalDeployer
in
order to handle the special Tomcat scenarios: if the deployable is a TomcatWAR
instance and it containts a context.xml
file that we need to manually copy.
- See Also:
AbstractCopyingInstalledLocalDeployer.deployWar(String, org.codehaus.cargo.container.deployable.WAR)
deployExpandedWar
protected void deployExpandedWar(java.lang.String deployableDir,
org.codehaus.cargo.container.deployable.WAR war)
- We override the default implementation from
AbstractCopyingInstalledLocalDeployer
in
order to handle the special Tomcat scenarios: if the deployable is a TomcatWAR
instance and it contains a context.xml
file that we need to manually copy.
- See Also:
AbstractCopyingInstalledLocalDeployer.deployExpandedWar(String, org.codehaus.cargo.container.deployable.WAR)
Copyright © 2004-2007 Codehaus. All Rights Reserved.