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:
- Deployer, Loggable
public class TomcatCopyingInstalledLocalDeployer
- extends AbstractCopyingInstalledLocalDeployer
Static deployer that deploys WARs to the Tomcat webapps
directory.
- Version:
- $Id: TomcatCopyingInstalledLocalDeployer.java 1489 2007-07-01 10:07:52Z vmassol $
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractCopyingInstalledLocalDeployer |
canBeDeployed, deploy, deployEar, deployEjb, deployExpandedRar, deployExpandedSar, deployFile, deployRar, deploySar, setShouldDeployExpandedRARs, setShouldDeployExpandedSARs, setShouldDeployExpandedWARs |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TomcatCopyingInstalledLocalDeployer
public TomcatCopyingInstalledLocalDeployer(InstalledLocalContainer container)
-
- See Also:
AbstractCopyingInstalledLocalDeployer.AbstractCopyingInstalledLocalDeployer(InstalledLocalContainer)
getDeployableDir
public String getDeployableDir()
- Specifies the directory
Deployable
s should
be copied to. For Tomcat this is the webapps
directory.
- Specified by:
getDeployableDir
in class AbstractCopyingInstalledLocalDeployer
- Returns:
- Deployable the directory to deploy to
setShouldCopyWars
public void setShouldCopyWars(boolean shouldCopyWars)
- Whether the local deployer should copy the wars to the 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(String deployableDir,
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.
Copy the WAR file to the deployable directory, renaming it if the user has specified a
custom context for this WAR.
- Overrides:
deployWar
in class AbstractCopyingInstalledLocalDeployer
- Parameters:
deployableDir
- the directory where the container is expecting deployables to be dropped
for deploymentswar
- the WAR war- See Also:
AbstractCopyingInstalledLocalDeployer.deployWar(String, org.codehaus.cargo.container.deployable.WAR)
deployExpandedWar
protected void deployExpandedWar(String deployableDir,
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.
Copy the full expanded WAR directory to the deployable directory, renaming it if the user
has specified a custom context for this expanded WAR.
- Overrides:
deployExpandedWar
in class AbstractCopyingInstalledLocalDeployer
- Parameters:
deployableDir
- the directory where the container is expecting deployables to be dropped
for deploymentswar
- the expanded WAR war- See Also:
AbstractCopyingInstalledLocalDeployer.deployExpandedWar(String, org.codehaus.cargo.container.deployable.WAR)
Copyright © 2004-2012 Codehaus. All Rights Reserved.