org.codehaus.cargo.container.jetty
Class Jetty6xInstalledLocalDeployer
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.jetty.Jetty6xInstalledLocalDeployer
- All Implemented Interfaces:
- Deployer, Loggable
public class Jetty6xInstalledLocalDeployer
- extends AbstractCopyingInstalledLocalDeployer
A deployer for webapps that deploys to a Jetty 6.x installed instance.
- Version:
- $Id: Jetty6xInstalledLocalDeployer.java 1725 2008-09-22 18:58:15Z mwringe $
Method Summary |
protected void |
deployWar(String deployableDir,
WAR war)
Copy the WAR file to the deployable directory, renaming it if the user has specified a
custom context for this WAR. |
String |
getDeployableDir()
Specifies the directory Deployable s should
be copied to. |
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractCopyingInstalledLocalDeployer |
canBeDeployed, deploy, deployEar, deployEjb, deployExpandedRar, deployExpandedSar, deployExpandedWar, deployFile, deployRar, deploySar, setShouldDeployExpandedRARs, setShouldDeployExpandedSARs, setShouldDeployExpandedWARs |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Jetty6xInstalledLocalDeployer
public Jetty6xInstalledLocalDeployer(InstalledLocalContainer container)
-
- See Also:
AbstractCopyingInstalledLocalDeployer.AbstractCopyingInstalledLocalDeployer(org.codehaus.cargo.container.InstalledLocalContainer)
getDeployableDir
public String getDeployableDir()
- Specifies the directory
Deployable
s should
be copied to. For Jetty this is the webapps
directory.
- Specified by:
getDeployableDir
in class AbstractCopyingInstalledLocalDeployer
- Returns:
- Deployable the directory to deploy to
deployWar
protected void deployWar(String deployableDir,
WAR war)
- Copy the WAR file to the deployable directory, renaming it if the user has specified a
custom context for this WAR.
We override the base implementation because Jetty requires a context XML file deployed
in its context dir to perform hot deployment. Thus we need to create that context file
- 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)
Copyright © 2004-2012 Codehaus. All Rights Reserved.