Class JBoss7xInstalledLocalDeployer
- 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.jboss.JBossInstalledLocalDeployer
-
- org.codehaus.cargo.container.jboss.JBoss7xInstalledLocalDeployer
-
- Direct Known Subclasses:
WildFly8xInstalledLocalDeployer
public class JBoss7xInstalledLocalDeployer extends JBossInstalledLocalDeployer
Static deployer that deploys WARs and EARs to the JBossdeploymentsdirectory.
-
-
Constructor Summary
Constructors Constructor Description JBoss7xInstalledLocalDeployer(InstalledLocalContainer container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoDeploy(String deployableDir, Deployable deployable)Do the actual deployment.StringgetDeployableDir(Deployable deployable)Specifies the directoryDeployables should be copied to.protected DeployablemodifyManifestForClasspathEntries(Deployable originalDeployable)Modify the classpath via theMANIFEST.MFas explained on https://community.jboss.org/wiki/HowToPutAnExternalFileInTheClasspath-
Methods inherited from class org.codehaus.cargo.container.jboss.JBossInstalledLocalDeployer
getDeployableName, undeploy
-
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractCopyingInstalledLocalDeployer
canBeDeployed, deploy, setShouldDeployExpanded, shouldDeployExpanded
-
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
-
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractDeployer
deploy, deploy, redeploy, redeploy, redeploy, start, start, stop, stop, undeploy
-
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger, setLogger
-
-
-
-
Constructor Detail
-
JBoss7xInstalledLocalDeployer
public JBoss7xInstalledLocalDeployer(InstalledLocalContainer container)
-
-
Method Detail
-
getDeployableDir
public String getDeployableDir(Deployable deployable)
Specifies the directoryDeployables should be copied to.. For JBoss container the target is thedeploydirectory.. For JBoss container the target is thedeploymentsdirectory.- Overrides:
getDeployableDirin classJBossInstalledLocalDeployer- Parameters:
deployable- Deployable to deploy.- Returns:
- Deployable directory
-
doDeploy
protected void doDeploy(String deployableDir, Deployable deployable)
Do the actual deployment. This can be overriden.- Overrides:
doDeployin classAbstractCopyingInstalledLocalDeployer- Parameters:
deployableDir- Directory in which to deploy.deployable- Deployable to deploy.
-
modifyManifestForClasspathEntries
protected Deployable modifyManifestForClasspathEntries(Deployable originalDeployable) throws Exception
Modify the classpath via theMANIFEST.MFas explained on https://community.jboss.org/wiki/HowToPutAnExternalFileInTheClasspath- Parameters:
originalDeployable- Original deployable.- Returns:
- Modified deployable.
- Throws:
Exception- If anything goes wrong.
-
-