Package de.presti.ree6.installer
Class Main
java.lang.Object
de.presti.ree6.installer.Main
Main class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
clear()
Clear the console.static void
config()
Configure Ree6.static int
Returns the Java version as an int value.static String
getValue()
Get a value from the console.static String
getValueOrDefault
(String defaultValue) Get a value from the console or a default value.static String
getValueOrDefaultHidden
(String defaultValue) Get a hidden value from the console or a default value.static void
Main method.static void
Print something to the console.static void
setupGenericDatabase
(String typ, String displayName) Setup a generic database.static void
setupH2
(boolean server) Setup H2.static void
Setup SQLite.static void
Set up the first step of the configuration.static void
Setup the second step of the configuration.static void
update()
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.
-