public class ServerPackCreator
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ServerPackCreator.CommandlineParser
Check the passed commandline-arguments with which ServerPackCreator was started and return the
mode in which to run.
|
static class |
ServerPackCreator.WebService |
| Constructor and Description |
|---|
ServerPackCreator(java.lang.String[] args)
Initialize ServerPackCreator and determine the
ServerPackCreator.CommandlineParser.Mode to run in. |
| Modifier and Type | Method and Description |
|---|---|
void |
checkDatabase()
Ensures serverpackcreator.db exists.
|
boolean |
checkForConfig()
Check for old config file, if found rename to new name.
|
boolean |
checkServerFilesFile(java.io.File fileToCheckFor)
Checks for existence of defaults files.
|
void |
run()
Run ServerPackCreator with the mode acquired from
ServerPackCreator.CommandlineParser. |
void |
run(ServerPackCreator.CommandlineParser.Mode modeToRunIn)
Run ServerPackCreator in a specific
ServerPackCreator.CommandlineParser.Mode. |
void |
updateCheck()
Check for update-availability and exit with status code 0.
|
public ServerPackCreator(java.lang.String[] args)
ServerPackCreator.CommandlineParser.Mode to run in.args - Commandline arguments with which ServerPackCreator is run. Determines which mode
ServerPackCreator will enter and which locale is used.public void run()
throws java.io.IOException
ServerPackCreator.CommandlineParser.java.io.IOException - if the run fails.public void run(ServerPackCreator.CommandlineParser.Mode modeToRunIn) throws java.io.IOException
ServerPackCreator.CommandlineParser.Mode.modeToRunIn - ServerPackCreator.CommandlineParser.Mode to run in.java.io.IOException - if the run fails.public boolean checkForConfig()
public boolean checkServerFilesFile(java.io.File fileToCheckFor)
fileToCheckFor - The file which is to be checked for whether it exists and if it doesn't,
should be created.public void checkDatabase()
public void updateCheck()