mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-25 16:42:34 +00:00
@@ -328,7 +328,8 @@ class KeycloakProcessor {
|
||||
}
|
||||
}
|
||||
} else if (mapper.isBuildTime()) {
|
||||
value = Configuration.getConfigValue(mapper.getFrom());
|
||||
name = mapper.getFrom();
|
||||
value = Configuration.getConfigValue(name);
|
||||
}
|
||||
|
||||
if (value != null && value.getValue() != null) {
|
||||
|
||||
@@ -238,6 +238,13 @@ public final class Picocli {
|
||||
String runtimeValue = getRuntimeProperty(propertyName).orElse(null);
|
||||
|
||||
if (runtimeValue == null && isNotBlank(persistedValue)) {
|
||||
PropertyMapper mapper = PropertyMappers.getMapper(propertyName);
|
||||
|
||||
if (mapper != null && persistedValue.equals(mapper.getDefaultValue())) {
|
||||
// same as default
|
||||
continue;
|
||||
}
|
||||
|
||||
// probably because it was unset
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -76,4 +76,21 @@ public class StartAutoBuildDistTest {
|
||||
cliResult.assertNoBuild();
|
||||
cliResult.assertStarted();
|
||||
}
|
||||
|
||||
@Test
|
||||
@Launch({ "build", "--db=postgres" })
|
||||
@Order(5)
|
||||
void testBuildForReAugWhenAutoBuild(LaunchResult result) {
|
||||
CLIResult cliResult = (CLIResult) result;
|
||||
cliResult.assertBuild();
|
||||
}
|
||||
|
||||
@Test
|
||||
@Launch({ "start", "--auto-build", "--http-enabled=true", "--hostname-strict=false", "--cache=local" })
|
||||
@Order(6)
|
||||
void testReAugWhenNoOptionAfterBuild(LaunchResult result) {
|
||||
CLIResult cliResult = (CLIResult) result;
|
||||
cliResult.assertBuild();
|
||||
cliResult.assertStarted();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user