private void getActiveProfileStatement()

in src/main/java/org/apache/maven/plugins/help/ActiveProfilesMojo.java [101:122]


    private void getActiveProfileStatement(MavenProject project, StringBuilder message) {
        Map<String, List<String>> activeProfileIds = project.getInjectedProfileIds();

        message.append(LS);
        message.append("Active Profiles for Project '").append(project.getId()).append("':");
        message.append(LS).append(LS);

        if (activeProfileIds.isEmpty()) {
            message.append("There are no active profiles.");
        } else {
            message.append("The following profiles are active:").append(LS);

            for (Map.Entry<String, List<String>> entry : activeProfileIds.entrySet()) {
                for (String profileId : entry.getValue()) {
                    message.append(LS).append(" - ").append(profileId);
                    message.append(" (source: ").append(entry.getKey()).append(")");
                }
            }
        }

        message.append(LS);
    }