public class CreateTestInstance extends Object
It creates a new instance of the settings where the variables are changed, and then writes it out as a new deploy-configuration file (does not overwrite the original, but creates a new in same directory).
This class is prompted by our need to be able to install and run multiple instances the NetarchiveSuite in our test-environment simultaneously.
Constructor and Description |
---|
CreateTestInstance(File configSource)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
applyTestArguments(String offset,
String httpPort,
String environmentName,
String mailReceiver)
Function to apply the variables.
|
void |
createConfigurationFile(String filename)
Creates a file containing the new configuration instance.
|
public CreateTestInstance(File configSource)
configSource
- The source configuration file.public void applyTestArguments(String offset, String httpPort, String environmentName, String mailReceiver)
offset
- The input offset value (1-9 below httpPort).httpPort
- The new value for the HTTP port.environmentName
- The new value for the environment name.mailReceiver
- The new value for the mailReceiver.public void createConfigurationFile(String filename) throws IOException
filename
- The name of the file to be written.IOException
- If anything goes wrong.Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.