public abstract class AbstractStandaloneLocalConfiguration extends AbstractLocalConfiguration implements StandaloneLocalConfiguration
RESOURCE_PATH| Constructor and Description |
|---|
AbstractStandaloneLocalConfiguration(String dir) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(LocalContainer container)
Configure the specified container.
|
protected void |
configureFiles(org.apache.tools.ant.types.FilterChain filterChain)
Copy the customized configuration files into the cargo home directory.
|
protected org.apache.tools.ant.types.FilterChain |
createFilterChain()
Creates the default filter chain that should be applied while copying
container configuration files to the working directory from which
the container is started.
|
protected String |
getDestDirectoryLocation(String file,
String toDir)
Determines the correct path for the destination directory.
|
protected String |
getDestFileLocation(String file,
String toDir,
String toFile)
Determines the correct path for the destination file.
|
List |
getFileProperties()
Returns the file configurations.
|
org.apache.tools.ant.types.FilterChain |
getFilterChain()
Returns the filterchain for this configuration.
|
ConfigurationType |
getType() |
void |
setConfigFileProperty(FileConfig fileConfig)
set the config file property for a configuration.
|
void |
setFileProperty(FileConfig fileConfig)
set the file property for a configuration.
|
protected void |
setupConfigurationDir()
Set up the configuration directory (create it and clean it).
|
void |
verify()
Verify that the configuration is valid.
|
addDataSource, addDataSourcesFromProperties, addDeployable, addResource, addResourcesFromProperties, collectUnsupportedDataSourcesAndThrowException, collectUnsupportedResourcesAndThrowException, doConfigure, getAntUtils, getDataSources, getDeployables, getFileHandler, getHome, getResources, getResourceUtils, parsePropertiesForPendingConfiguration, setFileHandlergetProperties, getPropertyValue, setPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddDeployable, addResource, getDeployables, getFileHandler, getHome, getResources, setFileHandlergetCapability, getProperties, getPropertyValue, setPropertypublic AbstractStandaloneLocalConfiguration(String dir)
public void configure(LocalContainer container)
configure in interface LocalConfigurationconfigure in class AbstractLocalConfigurationcontainer - the container to configureLocalConfiguration.configure(LocalContainer)protected void setupConfigurationDir()
throws IOException
Note: We only clean the configuration directory if it's empty or if there is a Cargo timestamp file. This is to prevent deleting not empty directories if the user has mistakenly pointed the configuration dir to an existing location.
IOException - if the directory cannot be createdprotected final org.apache.tools.ant.types.FilterChain createFilterChain()
public void verify()
verify in interface ContainerConfigurationverify in class AbstractLocalConfigurationContainerConfiguration.verify()public ConfigurationType getType()
getType in interface ConfigurationConfiguration.getType()public org.apache.tools.ant.types.FilterChain getFilterChain()
getFilterChain in interface StandaloneLocalConfigurationpublic void setFileProperty(FileConfig fileConfig)
setFileProperty in interface StandaloneLocalConfigurationfileConfig - The FileConfig to useorg.codehaus.cargo.container.configuration.StandaloneLocalConfiguration#addConfigfile(org.codehaus.cargo.container.configuration.FileConfig)public void setConfigFileProperty(FileConfig fileConfig)
setConfigFileProperty in interface StandaloneLocalConfigurationfileConfig - The FileConfig to useorg.codehaus.cargo.container.configuration.StandaloneLocalConfiguration#addConfigfile(org.codehaus.cargo.container.configuration.FileConfig)public List getFileProperties()
getFileProperties in interface StandaloneLocalConfigurationorg.codehaus.cargo.container.configuration.StandaloneLocalConfiguration#getConfigfiles()protected void configureFiles(org.apache.tools.ant.types.FilterChain filterChain)
filterChain - the filter chain to use during the copyprotected String getDestFileLocation(String file, String toDir, String toFile)
file - The path of the original filetoDir - The directory for the copied filetoFile - The file name for the copied fileCopyright © 2004-2013 Codehaus. All Rights Reserved.