From 4b77e89b1ce5ecf9a25a9edb5329d108db2fef45 Mon Sep 17 00:00:00 2001 From: Peter Zaoral Date: Thu, 9 May 2024 21:19:17 +0200 Subject: [PATCH] profile manager Signed-off-by: Peter Zaoral --- .../java/org/keycloak/quarkus/deployment/KeycloakProcessor.java | 2 +- .../src/main/java/org/keycloak/quarkus/runtime/Environment.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/quarkus/deployment/src/main/java/org/keycloak/quarkus/deployment/KeycloakProcessor.java b/quarkus/deployment/src/main/java/org/keycloak/quarkus/deployment/KeycloakProcessor.java index fd72e0bbe667..5c7e6614a13c 100644 --- a/quarkus/deployment/src/main/java/org/keycloak/quarkus/deployment/KeycloakProcessor.java +++ b/quarkus/deployment/src/main/java/org/keycloak/quarkus/deployment/KeycloakProcessor.java @@ -545,7 +545,7 @@ void persistBuildTimeProperties(BuildProducer resour if (profile != null) { properties.put(Environment.PROFILE, profile); - properties.put(ProfileManager.QUARKUS_PROFILE_PROP, profile); + properties.put(ProfileManager.getLaunchMode().getProfileKey(), profile); } properties.put(QUARKUS_PROPERTY_ENABLED, String.valueOf(QuarkusPropertiesConfigSource.getConfigurationFile() != null)); diff --git a/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/Environment.java b/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/Environment.java index bcc62354eed9..33fb7a904167 100644 --- a/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/Environment.java +++ b/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/Environment.java @@ -116,7 +116,7 @@ public static String getProfile() { public static void setProfile(String profile) { System.setProperty(PROFILE, profile); - System.setProperty(ProfileManager.QUARKUS_PROFILE_PROP, profile); + System.setProperty(ProfileManager.getLaunchMode().getProfileKey(), profile); System.setProperty(SmallRyeConfig.SMALLRYE_CONFIG_PROFILE, profile); if (isTestLaunchMode()) { System.setProperty("mp.config.profile", profile);