@SpringBootApplication
@EnableScheduling
@PropertySource(value="classpath:application.properties") @PropertySource(value="classpath:serverpackcreator.properties") @PropertySource(value="file:./serverpackcreator.properties")
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.
|
| 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.
|
AnnotationScanner |
getAnnotationScanner() |
ApplicationPlugins |
getApplicationPlugins() |
ApplicationProperties |
getApplicationProperties() |
static java.lang.String[] |
getArgs()
The arguments with which ServerPackCreator was started.
|
ServerPackCreator.CommandlineParser |
getCommandlineParser() |
ConfigurationEditor |
getConfigurationEditor() |
ConfigurationHandler |
getConfigurationHandler() |
ConfigUtilities |
getConfigUtilities() |
FabricScanner |
getFabricScanner() |
I18n |
getI18n() |
ModScanner |
getModScanner() |
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
QuiltScanner |
getQuiltScanner() |
static ServerPackCreator |
getServerPackCreator(java.lang.String[] args) |
ServerPackCreatorGui |
getServerPackCreatorGui() |
ServerPackCreatorSplash |
getServerPackCreatorSplash() |
ServerPackHandler |
getServerPackHandler() |
com.electronwill.nightconfig.toml.TomlParser |
getTomlParser() |
TomlScanner |
getTomlScanner() |
UpdateChecker |
getUpdateChecker() |
Utilities |
getUtilities() |
VersionMeta |
getVersionMeta() |
static void |
main(java.lang.String[] args)
Initialize ServerPackCreator with the passed commandline-arguments and run.
|
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.
|
static void |
web(java.lang.String[] args)
Start Spring Boot app, providing our Apache Tomcat and serving our frontend.
|
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 static ServerPackCreator getServerPackCreator(java.lang.String[] args)
public static void main(java.lang.String[] args)
throws java.io.IOException
For a list of available commandline arguments, check out ServerPackCreator.CommandlineParser.Mode
args - Commandline arguments with which ServerPackCreator is run. Determines which mode
ServerPackCreator will enter and which locale is used.java.io.IOException - if the VersionMeta could not be instantiated.public static java.lang.String[] getArgs()
public static void web(java.lang.String[] args)
args - Arguments passed from invocation in main(String[]).public ServerPackCreator.CommandlineParser getCommandlineParser()
public I18n getI18n()
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
public ApplicationProperties getApplicationProperties()
public Utilities getUtilities()
public VersionMeta getVersionMeta() throws java.io.IOException
java.io.IOExceptionpublic ConfigUtilities getConfigUtilities()
public ConfigurationHandler getConfigurationHandler() throws java.io.IOException
java.io.IOExceptionpublic ApplicationPlugins getApplicationPlugins()
public ServerPackHandler getServerPackHandler() throws java.io.IOException
java.io.IOExceptionpublic ServerPackCreatorSplash getServerPackCreatorSplash()
public UpdateChecker getUpdateChecker()
public ModScanner getModScanner()
public AnnotationScanner getAnnotationScanner()
public FabricScanner getFabricScanner()
public QuiltScanner getQuiltScanner()
public com.electronwill.nightconfig.toml.TomlParser getTomlParser()
public TomlScanner getTomlScanner()
public ConfigurationEditor getConfigurationEditor() throws java.io.IOException
java.io.IOExceptionpublic ServerPackCreatorGui getServerPackCreatorGui() throws java.io.IOException
java.io.IOExceptionpublic 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 - 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()