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 JBossdeployments
directory.
-
-
Constructor Summary
Constructors Constructor Description JBoss7xInstalledLocalDeployer(InstalledLocalContainer container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doDeploy(String deployableDir, Deployable deployable)
Do the actual deployment.String
getDeployableDir(Deployable deployable)
Specifies the directoryDeployable
s should be copied to.protected Deployable
modifyManifestForClasspathEntries(Deployable originalDeployable)
Modify the classpath via theMANIFEST.MF
as 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 directoryDeployable
s should be copied to.. For JBoss container the target is thedeploy
directory.. For JBoss container the target is thedeployments
directory.- Overrides:
getDeployableDir
in 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:
doDeploy
in 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.MF
as explained on https://community.jboss.org/wiki/HowToPutAnExternalFileInTheClasspath- Parameters:
originalDeployable
- Original deployable.- Returns:
- Modified deployable.
- Throws:
Exception
- If anything goes wrong.
-
-