Package de.presti.ree6.installer
Class Main
java.lang.Object
de.presti.ree6.installer.Main
Main class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclear()Clear the console.static voidconfig()Configure Ree6.static intReturns the Java version as an int value.static StringgetValue()Get a value from the console.static StringgetValueOrDefault(String defaultValue) Get a value from the console or a default value.static StringgetValueOrDefaultHidden(String defaultValue) Get a hidden value from the console or a default value.static voidMain method.static voidPrint something to the console.static voidsetupGenericDatabase(String typ, String displayName) Setup a generic database.static voidsetupH2(boolean server) Setup H2.static voidSetup SQLite.static voidSet up the first step of the configuration.static voidSetup the second step of the configuration.static voidupdate()Update Ree6 to the latest version.
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
Main method.- Parameters:
args- the args.- Throws:
InterruptedException- if the delay fails?
-
getJavaVersion
public static int getJavaVersion()Returns the Java version as an int value.- Returns:
- the Java version as an int value (8, 9, etc.)
-
config
Configure Ree6.- Throws:
InterruptedException- if the delay fails?
-
print
Print something to the console.- Parameters:
print- the thing to print.
-
clear
public static void clear()Clear the console. -
setupStepOne
Set up the first step of the configuration.- Throws:
InterruptedException- if the delay fails?IOException- If something went wrong.
-
setupStepTwo
Setup the second step of the configuration.- Throws:
IOException- if something went wrong.
-
update
public static void update()Update Ree6 to the latest version. -
setupGenericDatabase
Setup a generic database.- Parameters:
typ- the typ of the database.displayName- the display name of the database.- Throws:
IOException- if something went wrong.
-
setupSQLite
Setup SQLite.- Throws:
IOException- if something went wrong.
-
setupH2
Setup H2.- Throws:
IOException- if something went wrong.
-
getValue
Get a value from the console.- Returns:
- the value.
-
getValueOrDefault
Get a value from the console or a default value.- Parameters:
defaultValue- the default value.- Returns:
- the value.
-
getValueOrDefaultHidden
Get a hidden value from the console or a default value.- Parameters:
defaultValue- the default value.- Returns:
- the value.
-