Package io.github.jbastgen.stemma.app
Class Launcher
java.lang.Object
io.github.jbastgen.stemma.app.Launcher
Plain entry point. It deliberately does not extend
Application, so the application can also be
started from a classpath (non-modular) jar without the JavaFX "runtime components are missing" error.-
Method Summary
Modifier and TypeMethodDescriptionstatic voidStarts Stemma: checks that JavaFX is there, keeps its cache in the configuration folder, starts the logging and launchesStemmaApp.static voidPoints Logback to the log folder (logsin the application's directory, seeAppDirs.logDir()), removes the log files older thanLogCleanup.KEEP_DAYSdays, and makes sure that an exception nobody caught ends up in the log file instead of being lost.
-
Method Details
-
main
Starts Stemma: checks that JavaFX is there, keeps its cache in the configuration folder, starts the logging and launchesStemmaApp.- Parameters:
args- optionally the folder of a repository to open
-
startLogging
public static void startLogging()Points Logback to the log folder (logsin the application's directory, seeAppDirs.logDir()), removes the log files older thanLogCleanup.KEEP_DAYSdays, and makes sure that an exception nobody caught ends up in the log file instead of being lost.
-