Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for getActiveProfiles (0.13 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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/ProfileSelector.java

         * @param problems The container used to collect problems that were encountered, must not be {@code null}.
         * @return The profiles that have been activated, never {@code null}.
         */
        List<Profile> getActiveProfiles(
                Collection<Profile> profiles, ProfileActivationContext context, ModelProblemCollector problems);
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/profiles/DefaultProfileManager.java

            for (String profileId1 : profileIds) {
                explicitlyDeactivate(profileId1);
            }
        }
    
        /* (non-Javadoc)
         * @see org.apache.maven.profiles.ProfileManager#getActiveProfiles()
         */
        public List getActiveProfiles() throws ProfileActivationException {
            DefaultProfileActivationContext context = new DefaultProfileActivationContext();
            context.setActiveProfileIds(activatedIds);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/DefaultProfileSelector.java

                ModelProblemCollector problems) {
            return getActiveProfiles(profiles.stream().map(Profile::new).collect(Collectors.toList()), context, problems)
                    .stream()
                    .map(Profile::getDelegate)
                    .collect(Collectors.toList());
        }
    
        @Override
        public List<Profile> getActiveProfiles(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  5. 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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. 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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  7. 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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 31.7K 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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  9. 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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java

                request.addMirror(mirror);
            }
    
            request.setActiveProfiles(settings.getActiveProfiles());
    
            for (org.apache.maven.settings.Profile rawProfile : settings.getProfiles()) {
                request.addProfile(SettingsUtils.convertFromSettingsProfile(rawProfile));
    
                if (settings.getActiveProfiles().contains(rawProfile.getId())) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top