in log4j-catalog/log4j-catalog-api/src/main/java/org/apache/logging/log4j/catalog/api/util/ProfileUtil.java [38:53]
public static void setActiveProfile(ServletContext servletContext) {
String springProfile = System.getProperty(SPRING_PROFILE);
if (springProfile == null) {
springProfile = System.getenv(SPRING_PROFILE);
}
if (springProfile == null) {
springProfile = servletContext.getInitParameter(SPRING_PROFILE);
}
if (springProfile == null) {
Properties props = loadProperties(servletContext);
String activeProfile = props.getProperty(SPRING_PROFILE);
if (activeProfile == null) {
servletContext.setInitParameter(SPRING_PROFILE, "eclipseLink");
}
}
}