org.codehaus.cargo.container.tomcat
Class TomcatCopyingInstalledLocalDeployer

java.lang.Object
  extended by org.codehaus.cargo.util.log.LoggedObject
      extended by org.codehaus.cargo.container.spi.deployer.AbstractDeployer
          extended by org.codehaus.cargo.container.spi.deployer.AbstractLocalDeployer
              extended by org.codehaus.cargo.container.spi.deployer.AbstractInstalledLocalDeployer
                  extended by org.codehaus.cargo.container.spi.deployer.AbstractCopyingInstalledLocalDeployer
                      extended by 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 $

Constructor Summary
TomcatCopyingInstalledLocalDeployer(org.codehaus.cargo.container.InstalledLocalContainer container)
          
 
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 Deployables 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
 

Constructor Detail

TomcatCopyingInstalledLocalDeployer

public TomcatCopyingInstalledLocalDeployer(org.codehaus.cargo.container.InstalledLocalContainer container)

See Also:
AbstractCopyingInstalledLocalDeployer.AbstractCopyingInstalledLocalDeployer(InstalledLocalContainer)
Method Detail

getDeployableDir

public java.lang.String getDeployableDir()
Specifies the directory Deployables should be copied to. For Tomcat this is the webapps directory.

Specified by:
getDeployableDir in class org.codehaus.cargo.container.spi.deployer.AbstractCopyingInstalledLocalDeployer
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.

Overrides:
deployWar in class org.codehaus.cargo.container.spi.deployer.AbstractCopyingInstalledLocalDeployer
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.

Overrides:
deployExpandedWar in class org.codehaus.cargo.container.spi.deployer.AbstractCopyingInstalledLocalDeployer
See Also:
AbstractCopyingInstalledLocalDeployer.deployExpandedWar(String, org.codehaus.cargo.container.deployable.WAR)


Copyright © 2004-2010 Codehaus. All Rights Reserved.