Skip to content

Commit

Permalink
profile manager
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zaoral <[email protected]>
  • Loading branch information
Pepo48 committed May 9, 2024
1 parent 2055cf6 commit 4b77e89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ void persistBuildTimeProperties(BuildProducer<GeneratedResourceBuildItem> 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));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4b77e89

Please sign in to comment.