setActiveProfiles abstract method

void setActiveProfiles(
  1. List<String> profiles
)

Replaces the current set of active profiles with the given list.

Active profiles influence conditional configuration, especially with profile-based pods or property loading.

Example:

env.setActiveProfiles(['production']);

Implementation

void setActiveProfiles(List<String> profiles);