From c41a52637415e4975c374a05727b30a7ffaa6b6b Mon Sep 17 00:00:00 2001 From: Joacim Breiler Date: Sun, 15 Oct 2023 07:53:19 +0200 Subject: [PATCH] Added option to clear the cache and use it by default (#2340) This is an attempt to fix problems where users try to start UGS after upgrading and the application dies silently due to the cache being corrupted. This often happens on Windows machines. It will now clear the cache on startup --- .idea/runConfigurations/UGS_Platform.xml | 2 +- .../fluidnc/FluidNCControllerTest.java | 4 +- .../src/main/resources/ugsplatform.conf | 2 +- .../{startup.java => ServiceStarter.java} | 71 +------------- .../{shutdown.java => ServiceStopper.java} | 2 +- .../lifecycle/StartupOptionProcessor.java | 95 +++++++++++++++++++ 6 files changed, 104 insertions(+), 72 deletions(-) rename ugs-platform/ugs-platform-ugscore/src/main/java/com/willwinder/ugs/nbp/core/lifecycle/{startup.java => ServiceStarter.java} (55%) rename ugs-platform/ugs-platform-ugscore/src/main/java/com/willwinder/ugs/nbp/core/lifecycle/{shutdown.java => ServiceStopper.java} (96%) create mode 100644 ugs-platform/ugs-platform-ugscore/src/main/java/com/willwinder/ugs/nbp/core/lifecycle/StartupOptionProcessor.java diff --git a/.idea/runConfigurations/UGS_Platform.xml b/.idea/runConfigurations/UGS_Platform.xml index 680cb31827..fe9a6f328b 100644 --- a/.idea/runConfigurations/UGS_Platform.xml +++ b/.idea/runConfigurations/UGS_Platform.xml @@ -4,7 +4,7 @@