public class DeployConfRunner extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEPLOYMENT_CONFIG_SUFFIX
The deployment config file suffix to use when creating deploymentConfig paths.
|
| Constructor and Description |
|---|
DeployConfRunner(org.polago.deployconf.DeployConfRunner.RunMode runMode)
Public Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Path |
getDeploymentConfigPath(String name)
Gets the Path to use for storing the DeploymentConfig.
|
String |
getDeploymentTemplatePath()
Gets the deploymentTemplatePath property value.
|
ConfigGroupManager |
getGroupManager()
Gets the groupManager property value.
|
String |
getRepositoryDirectory()
Gets the repositoryDirectory property value.
|
protected String |
getRepositoryDirectoryFromEnvironment()
Gets the repository directory from the Environment, if possible.
|
static void |
main(String[] args)
Main entry point.
|
protected InteractiveConfigurer |
newInteractiveConfigurer()
Create a InteractiveConfigurer instance.
|
int |
run(String source,
String destination)
Run this program.
|
void |
setDeploymentConfigPath(Path deploymentConfigPath)
Sets the deploymentConfigFile property.
|
void |
setDeploymentTemplatePath(String deploymentTemplatePath)
Sets the deploymentTemplatePath property.
|
void |
setGroupManager(ConfigGroupManager groupManager)
Sets the groupManager property.
|
void |
setRepositoryDirectory(String repositoryDirectory)
Sets the repositoryDirectory property.
|
protected static final String DEPLOYMENT_CONFIG_SUFFIX
public DeployConfRunner(org.polago.deployconf.DeployConfRunner.RunMode runMode)
runMode - how the program should interact with the userpublic static void main(String[] args)
args - the runtime program argumentspublic int run(String source, String destination) throws Exception
source - the input filedestination - the destination fileException - indicating processing errorpublic String getDeploymentTemplatePath()
public void setDeploymentTemplatePath(String deploymentTemplatePath)
deploymentTemplatePath - the new property valuepublic void setDeploymentConfigPath(Path deploymentConfigPath)
deploymentConfigPath - the new property valuepublic Path getDeploymentConfigPath(String name)
Unless an explicit deployment config File is set, the File is created in the configured repository and based on the config name. If no repository is set, the current working directory is used.
name - the DeploymentConfig name to usepublic String getRepositoryDirectory()
public void setRepositoryDirectory(String repositoryDirectory)
repositoryDirectory - the new property valuepublic ConfigGroupManager getGroupManager()
public void setGroupManager(ConfigGroupManager groupManager)
groupManager - the new property valueprotected InteractiveConfigurer newInteractiveConfigurer() throws IOException
IOException - indicating failureprotected String getRepositoryDirectoryFromEnvironment()
Copyright © 2013–2017 Polago AB. All rights reserved.