mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-02-27 00:40:51 +01:00
Improve server config documentation and cleanup
This commit is contained in:
committed by
René Pfeuffer
parent
abe0a62cb4
commit
d0c43dd9f4
@@ -70,7 +70,11 @@ public class ConfigurationResolver {
|
||||
Map<String, String> configurationFile = new HashMap<>();
|
||||
rootNode.fields().forEachRemaining(entry -> {
|
||||
if (entry.getValue().isValueNode()) {
|
||||
configurationFile.put(prefix + entry.getKey(), entry.getValue().asText());
|
||||
if (entry.getValue().isNull()) {
|
||||
configurationFile.put(prefix + entry.getKey(), null);
|
||||
} else {
|
||||
configurationFile.put(prefix + entry.getKey(), entry.getValue().asText());
|
||||
}
|
||||
} else {
|
||||
configurationFile.putAll(readConfigurationFile(entry.getValue(), prefix + entry.getKey() + "."));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user