Class Container
- java.lang.Object
- 
- org.codehaus.cargo.maven3.configuration.Container
 
- 
 public class Container extends Object Holds configuration data for the<container>tag used to configure the plugin in thepom.xmlfile.
- 
- 
Constructor SummaryConstructors Constructor Description Container()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainercreateContainer(Configuration configuration, Logger logger, CargoProject project)Creates the container based on its configuration and attaches the logger.ContainercreateContainer(Configuration configuration, Logger logger, CargoProject project, org.apache.maven.shared.transfer.artifact.resolve.ArtifactResolver artifactResolver, org.apache.maven.project.ProjectBuildingRequest projectBuildingRequest, org.apache.maven.settings.Settings settings)Creates the container based on its configuration and attaches the logger.ArtifactInstallergetArtifactInstaller()StringgetContainerId()StringgetContextKey()Dependency[]getDependencies()StringgetHome()StringgetImplementation()StringgetInstallerZipFile()FilegetLog()LogLevelgetLogLevel()StringgetOutput()Map<String,String>getSystemProperties()FilegetSystemPropertiesFile()LonggetTimeout()ContainerTypegetType()ZipUrlInstallergetZipUrlInstaller()voidsetAppend(boolean append)voidsetArtifactInstaller(ArtifactInstaller artifactInstaller)voidsetContainerId(String containerId)voidsetContextKey(String contextKey)voidsetDependencies(Dependency[] dependencies)voidsetHome(String home)voidsetImplementation(String implementation)voidsetLog(File log)voidsetLogLevel(String levelAsString)voidsetOutput(String output)voidsetSystemProperties(Map<String,String> systemProperties)voidsetSystemPropertiesFile(File systemPropertiesFile)voidsetTimeout(Long timeout)voidsetType(ContainerType type)voidsetZipUrlInstaller(ZipUrlInstaller zipUrlInstaller)booleanshouldAppend()
 
- 
- 
- 
Method Detail- 
setSystemPropertiespublic void setSystemProperties(Map<String,String> systemProperties) - Parameters:
- systemProperties- System properties.
 
 - 
getSystemPropertiesFilepublic File getSystemPropertiesFile() - Returns:
- System properties loaded from file.
 
 - 
setSystemPropertiesFilepublic void setSystemPropertiesFile(File systemPropertiesFile) - Parameters:
- systemPropertiesFile- System properties loaded from file.
 
 - 
getTimeoutpublic Long getTimeout() - Returns:
- Timeout (in milliseconds).
 
 - 
getInstallerZipFilepublic String getInstallerZipFile() - Returns:
- installed zip file (null if not downloaded).
 
 - 
setTimeoutpublic void setTimeout(Long timeout) - Parameters:
- timeout- Timeout (in milliseconds).
 
 - 
getDependenciespublic Dependency[] getDependencies() - Returns:
- List of dependencies.
 
 - 
setDependenciespublic void setDependencies(Dependency[] dependencies) - Parameters:
- dependencies- List of dependencies.
 
 - 
getTypepublic ContainerType getType() - Returns:
- Container type.
 
 - 
setTypepublic void setType(ContainerType type) - Parameters:
- type- Container type.
 
 - 
getContainerIdpublic String getContainerId() - Returns:
- Container id.
 
 - 
setContainerIdpublic void setContainerId(String containerId) - Parameters:
- containerId- Container id.
 
 - 
getHomepublic String getHome() - Returns:
- Container home.
 
 - 
setHomepublic void setHome(String home) - Parameters:
- home- Container home.
 
 - 
getOutputpublic String getOutput() - Returns:
- Output file.
 
 - 
setOutputpublic void setOutput(String output) - Parameters:
- output- Output file.
 
 - 
getZipUrlInstallerpublic ZipUrlInstaller getZipUrlInstaller() - Returns:
- ZipUrlInstallerfor the container.
 
 - 
setZipUrlInstallerpublic void setZipUrlInstaller(ZipUrlInstaller zipUrlInstaller) - Parameters:
- zipUrlInstaller-- ZipUrlInstallerfor the container.
 
 - 
getArtifactInstallerpublic ArtifactInstaller getArtifactInstaller() - Returns:
- ArtifactInstallerfor the container.
 
 - 
setArtifactInstallerpublic void setArtifactInstaller(ArtifactInstaller artifactInstaller) - Parameters:
- artifactInstaller-- ArtifactInstallerfor the container.
 
 - 
shouldAppendpublic boolean shouldAppend() - Returns:
- Whether to append logs.
 
 - 
setAppendpublic void setAppend(boolean append) - Parameters:
- append- Whether to append logs.
 
 - 
setLogpublic void setLog(File log) - Parameters:
- log- Log file.
 
 - 
getLogpublic File getLog() - Returns:
- Log file.
 
 - 
setLogLevelpublic void setLogLevel(String levelAsString) - Parameters:
- levelAsString- Log level.
 
 - 
getLogLevelpublic LogLevel getLogLevel() - Returns:
- Log level.
 
 - 
getImplementationpublic String getImplementation() - Returns:
- Container implementation.
 
 - 
setImplementationpublic void setImplementation(String implementation) - Parameters:
- implementation- Container implementation.
 
 - 
getContextKeypublic String getContextKey() - Returns:
- Container context key, which can be used to start, stop, configure or deploy to the same Cargo container (together with its configuration) from different Maven artifacts.
 
 - 
setContextKeypublic void setContextKey(String contextKey) - Parameters:
- contextKey- Container context key, which can be used to start, stop, configure or deploy to the same Cargo container (together with its configuration) from different Maven artifacts.
 
 - 
createContainerpublic Container createContainer(Configuration configuration, Logger logger, CargoProject project) throws org.apache.maven.plugin.MojoExecutionException Creates the container based on its configuration and attaches the logger.- Parameters:
- configuration- Container configuration.
- logger- Logger.
- project- Cargo project.
- Returns:
- Container configuration.
- Throws:
- org.apache.maven.plugin.MojoExecutionException- If container creation fails.
 
 - 
createContainerpublic Container createContainer(Configuration configuration, Logger logger, CargoProject project, org.apache.maven.shared.transfer.artifact.resolve.ArtifactResolver artifactResolver, org.apache.maven.project.ProjectBuildingRequest projectBuildingRequest, org.apache.maven.settings.Settings settings) throws org.apache.maven.plugin.MojoExecutionException Creates the container based on its configuration and attaches the logger.- Parameters:
- configuration- Container configuration.
- logger- Logger.
- project- Cargo project.
- artifactResolver- The artifact resolver is used to dynamically resolve- Artifactobjects. It will automatically download whatever needed.
- projectBuildingRequest- Maven project building request.
- settings- Maven 3 settings.
- Returns:
- Container configuration.
- Throws:
- org.apache.maven.plugin.MojoExecutionException- If container creation fails.
 
 
- 
 
-