public abstract class AbstractDirectoryPackager extends LoggedObject implements Packager
| Constructor and Description |
|---|
AbstractDirectoryPackager(String targetDirectory) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract List<String> |
getConfigurationExclusions() |
protected abstract List<String> |
getDistributionExclusions() |
protected FileHandler |
getFileHandler() |
String |
getTargetDirectory() |
void |
packageContainer(InstalledLocalContainer container)
Package an installed container distribution and its local configuration in a single location.
|
protected void |
setFileHandler(FileHandler fileHandler) |
getLogger, setLoggerpublic AbstractDirectoryPackager(String targetDirectory)
targetDirectory - the directory where the container distribution and its local
configuration will be packagedpublic String getTargetDirectory()
protected FileHandler getFileHandler()
protected void setFileHandler(FileHandler fileHandler)
fileHandler - the Cargo file utility class to use. This method is useful for unit
testing with Mock objects as it can be passed a test file handler that doesn't perform any
real file action.public void packageContainer(InstalledLocalContainer container)
packageContainer in interface Packagercontainer - the installed container to packagePackager.packageContainer(org.codehaus.cargo.container.InstalledLocalContainer)protected abstract List<String> getDistributionExclusions()
InstalledLocalContainer.getHome().protected abstract List<String> getConfigurationExclusions()
LocalConfiguration.getHome().Copyright © 2004-2013 Codehaus. All Rights Reserved.