[KEYCLOAK-14255] - Fixing tests

This commit is contained in:
Pedro Igor 2020-09-16 15:38:02 -03:00 committed by Marek Posolda
parent c6608c1561
commit 3fd6f0ce10

View file

@ -69,12 +69,12 @@ public class MainCommand {
@CommandLine.Parameters(paramLabel = "system properties", description = "Any Java system property you want set")
List<String> systemProperties;
@Option(names = "--profile", arity = "1", description = "Set the profile. Use 'dev' profile to enable development mode")
@Option(names = "--profile", arity = "1", description = "Set the profile. Use 'dev' profile to enable development mode", scope = CommandLine.ScopeType.INHERIT)
public void setProfile(String profile) {
System.setProperty("kc.profile", profile);
}
@Option(names = "--config-file", arity = "1", description = "Set the path to a configuration file", paramLabel = "<path>")
@Option(names = "--config-file", arity = "1", description = "Set the path to a configuration file", paramLabel = "<path>", scope = CommandLine.ScopeType.INHERIT)
public void setConfigFile(String path) {
System.setProperty(KeycloakConfigSourceProvider.KEYCLOAK_CONFIG_FILE_PROP, path);
}