Class AppDirs
java.lang.Object
io.github.jbastgen.stemma.app.config.AppDirs
Where Stemma keeps its own files. Stemma is portable: it never writes to the user's home directory, to
%APPDATA%, to ~/Library or to any other system location, only to one configuration directory
that travels with the application (copy the folder, copy the settings).
The directory is chosen in this order:
- the system property
stemma.config.diror the environment variableSTEMMA_CONFIG_DIR(an explicit choice, e.g. for a read-only installation or a USB stick), <stemma.home>/config, wherestemma.homeis set by the start scripts of the distribution to the folder they live in,stemma-confignext to the jar the application runs from (the runnable jar),stemma-configin the current directory (running from class files, e.g. in an IDE).
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic PathThe configuration directory of this run (not created yet).static voidKeeps JavaFX from extracting its native libraries to~/.openjfx: they go to acachefolder inside the configuration directory instead.static PathlogDir()The directory for the log files:logsin the application's own directory.
-
Field Details
-
CONFIG_DIR_PROPERTY
- See Also:
-
CONFIG_DIR_ENV
- See Also:
-
HOME_PROPERTY
- See Also:
-
LOG_DIR_PROPERTY
- See Also:
-
LOG_DIR_ENV
- See Also:
-
-
Method Details
-
configDir
The configuration directory of this run (not created yet). -
logDir
The directory for the log files:logsin the application's own directory. Like the configuration it is never a system location. Chosen in this order:stemma.log.dir/STEMMA_LOG_DIR;<config dir>/logsif the configuration directory was chosen explicitly (so both stay together, e.g. on a USB stick);<stemma.home>/logs(the distribution);logsnext to the runnable jar;./logsin the current directory. -
keepJavaFxCacheLocal
public static void keepJavaFxCacheLocal()Keeps JavaFX from extracting its native libraries to~/.openjfx: they go to acachefolder inside the configuration directory instead. Call before JavaFX starts. An explicit-Djavafx.cachediris respected.
-