Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for getActiveProfiles (0.07 sec)

  1. compat/maven-compat/src/test/java/org/apache/maven/profiles/manager/DefaultProfileManagerTest.java

            profileManager.addProfile(notActivated);
            profileManager.addProfile(defaultActivated);
    
            List active = profileManager.getActiveProfiles();
    
            assertNotNull(active);
            assertEquals(1, active.size());
            assertEquals("defaultActivated", ((Profile) active.get(0)).getId());
        }
    
        @Test
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sun Mar 30 23:08:36 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/execution/ProfileActivation.java

         * Mimics the pre-Maven 4 "active profiles" list.
         * @deprecated Use {@link #getRequiredActiveProfileIds()} and {@link #getOptionalActiveProfileIds()} instead.
         */
        @Deprecated
        public List<String> getActiveProfiles() {
            return Collections.unmodifiableList(new ArrayList<>(getProfileIds(pa -> pa.active())));
        }
    
        /**
         * Mimics the pre-Maven 4 "inactive profiles" list.
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Feb 11 16:38:19 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/profiles/DefaultProfileManager.java

                explicitlyDeactivate(profileId1);
            }
        }
    
        /* (non-Javadoc)
         * @see org.apache.maven.profiles.ProfileManager#getActiveProfiles()
         */
        @Override
        public List getActiveProfiles() throws ProfileActivationException {
            DefaultProfileActivationContext context = new DefaultProfileActivationContext();
            context.setActiveProfileIds(activatedIds);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  4. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/merge/MavenSettingsMerger.java

                return;
            }
    
            recessive.setSourceLevel(recessiveSourceLevel);
    
            List<String> dominantActiveProfiles = dominant.getActiveProfiles();
            List<String> recessiveActiveProfiles = recessive.getActiveProfiles();
    
            if (recessiveActiveProfiles != null) {
                if (dominantActiveProfiles == null) {
                    dominantActiveProfiles = new ArrayList<>();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java

            this.projectBuildingRequest = projectBuildingConfiguration;
        }
    
        @Override
        public List<String> getActiveProfiles() {
            return this.profileActivation.getActiveProfiles();
        }
    
        @Override
        public List<String> getInactiveProfiles() {
            return this.profileActivation.getInactiveProfiles();
        }
    
        @Override
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Dec 12 11:02:17 UTC 2024
    - 32.1K bytes
    - Viewed (0)
  6. impl/maven-core/src/test/java/org/apache/maven/project/DefaultMavenProjectBuilderTest.java

            assertEquals(1, project.getActiveProfiles().size());
            assertTrue(project.getActiveProfiles().stream().anyMatch(p -> "profile1".equals(p.getId())));
            assertTrue(project.getActiveProfiles().stream().noneMatch(p -> "profile2".equals(p.getId())));
            assertTrue(project.getActiveProfiles().stream().noneMatch(p -> "active-by-default".equals(p.getId())));
        }
    
        @Test
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 17:20:31 UTC 2025
    - 33.7K bytes
    - Viewed (0)
  7. impl/maven-core/src/test/java/org/apache/maven/project/MavenProjectTest.java

            List<Profile> activeProfilesOrig = projectToClone.getActiveProfiles();
    
            assertEquals(1, activeProfilesOrig.size(), "Expecting 1 active profile");
    
            MavenProject clonedProject = projectToClone.clone();
    
            List<Profile> activeProfilesClone = clonedProject.getActiveProfiles();
    
            assertEquals(1, activeProfilesClone.size(), "Expecting 1 active profile");
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Nov 28 09:44:37 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  8. compat/maven-embedder/src/main/java/org/apache/maven/cli/configuration/SettingsXmlConfigurationProcessor.java

                    // do nothing for now
                }
            }
    
            request.setActiveProfiles(settings.getActiveProfiles());
    
            for (Profile rawProfile : settings.getProfiles()) {
                request.addProfile(SettingsUtils.convertFromSettingsProfile(rawProfile));
    
                if (settings.getActiveProfiles().contains(rawProfile.getId())) {
                    List<Repository> remoteRepositories = rawProfile.getRepositories();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Apr 19 18:49:57 UTC 2025
    - 12K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProject.java

                    .toList();
        }
    
        @Override
        @Nonnull
        public List<Profile> getDeclaredActiveProfiles() {
            return project.getActiveProfiles().stream()
                    .map(org.apache.maven.model.Profile::getDelegate)
                    .toList();
        }
    
        @Override
        @Nonnull
        public List<Profile> getEffectiveActiveProfiles() {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Mar 24 22:23:23 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/profiles/ProfileManager.java

        void explicitlyActivate(List<String> profileIds);
    
        void explicitlyDeactivate(String profileId);
    
        void explicitlyDeactivate(List<String> profileIds);
    
        List getActiveProfiles() throws ProfileActivationException;
    
        void addProfiles(List<Profile> profiles);
    
        Map getProfilesById();
    
        List<String> getExplicitlyActivatedIds();
    
        List<String> getExplicitlyDeactivatedIds();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top