Implementing #1251

This commit is contained in:
Martin Beyer
2020-07-08 14:01:10 +02:00
parent d3063c8117
commit e78155396d
4 changed files with 45 additions and 3 deletions
@@ -40,6 +40,7 @@ public class Environment {
LOG.debug("cryptomator.mountPointsDir: {}", System.getProperty("cryptomator.mountPointsDir"));
LOG.debug("cryptomator.minPwLength: {}", System.getProperty("cryptomator.minPwLength"));
LOG.debug("cryptomator.buildNumber: {}", System.getProperty("cryptomator.buildNumber"));
LOG.debug("cryptomator.binaryPath: {}", System.getProperty("cryptomator.binaryPath"));
}
public boolean useCustomLogbackConfig() {
@@ -74,6 +75,8 @@ public class Environment {
return getInt("cryptomator.minPwLength", DEFAULT_MIN_PW_LENGTH);
}
public Optional<Path> getBinaryPath() { return getPath("cryptomator.binaryPath"); }
private int getInt(String propertyName, int defaultValue) {
String value = System.getProperty(propertyName);
try {