fixed bug in Application class
CI / build (push) Successful in 44s

updated lys version
This commit is contained in:
2025-02-25 20:01:14 +08:00
parent 1ff74d28da
commit ef2ee4a86c
4 changed files with 10 additions and 15 deletions
@@ -73,7 +73,7 @@ public class Application {
public Path computeCacheDirectory() {
Stream<Path> commonCandidates = optional2Stream(
Optional.ofNullable(cacheDirectoryPropertyKey).map(System::getProperty).map(Paths::get),
Optional.ofNullable(cacheDirectoryEnvVar).map(System::getProperty).map(Paths::get)
Optional.ofNullable(cacheDirectoryEnvVar).map(System::getenv).map(Paths::get)
);
Stream<Path> osSpecificCandidates;
if (OS.isMac) {
@@ -108,7 +108,7 @@ public class Application {
public Path computeDataDirectory() {
Stream<Path> commonCandidates = optional2Stream(
Optional.ofNullable(dataDirectoryPropertyKey).map(System::getProperty).map(Paths::get),
Optional.ofNullable(dataDirectoryEnvVar).map(System::getProperty).map(Paths::get)
Optional.ofNullable(dataDirectoryEnvVar).map(System::getenv).map(Paths::get)
);
Stream<Path> osSpecificCandidates;
if (OS.isMac) {
@@ -143,7 +143,7 @@ public class Application {
public Path computeConfigurationDirectory() {
Stream<Path> commonCandidates = optional2Stream(
Optional.ofNullable(configurationDirectoryPropertyKey).map(System::getProperty).map(Paths::get),
Optional.ofNullable(configurationDirectoryEnvVar).map(System::getProperty).map(Paths::get)
Optional.ofNullable(configurationDirectoryEnvVar).map(System::getenv).map(Paths::get)
);
Stream<Path> osSpecificCandidates;
if (OS.isMac) {