public class ServerPackCreator
extends java.lang.Object
| Constructor and Description |
|---|
ServerPackCreator(java.lang.String[] args)
Initialize ServerPackCreator and determine the
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
CommandlineParser. |
void |
run(CommandlineParser.Mode modeToRunIn)
Run ServerPackCreator in a specific
CommandlineParser.Mode. |
void |
updateCheck()
Check for update-availability and exit with status code 0.
|
public ServerPackCreator(java.lang.String[] args)
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
CommandlineParser.java.io.IOException - if the run fails.public void run(CommandlineParser.Mode modeToRunIn) throws java.io.IOException
CommandlineParser.Mode.modeToRunIn - 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()