From 3fd6f0ce10a5be1b858e99a1d81413473f910a23 Mon Sep 17 00:00:00 2001 From: Pedro Igor Date: Wed, 16 Sep 2020 15:38:02 -0300 Subject: [PATCH] [KEYCLOAK-14255] - Fixing tests --- .../runtime/src/main/java/org/keycloak/cli/MainCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quarkus/runtime/src/main/java/org/keycloak/cli/MainCommand.java b/quarkus/runtime/src/main/java/org/keycloak/cli/MainCommand.java index ae55938016..a03c37bfd2 100644 --- a/quarkus/runtime/src/main/java/org/keycloak/cli/MainCommand.java +++ b/quarkus/runtime/src/main/java/org/keycloak/cli/MainCommand.java @@ -69,12 +69,12 @@ public class MainCommand { @CommandLine.Parameters(paramLabel = "system properties", description = "Any Java system property you want set") List 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 = "") + @Option(names = "--config-file", arity = "1", description = "Set the path to a configuration file", paramLabel = "", scope = CommandLine.ScopeType.INHERIT) public void setConfigFile(String path) { System.setProperty(KeycloakConfigSourceProvider.KEYCLOAK_CONFIG_FILE_PROP, path); }