Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for getActiveProfiles (0.23 sec)

  1. 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
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  2. 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);
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Jun 15 14:24:56 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  3. 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
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 31K bytes
    - Viewed (0)
  4. 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.
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Dec 26 15:12:32 GMT 2022
    - 5.6K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/api/services/model/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);
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  6. 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())) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Jun 19 15:04:04 GMT 2023
    - 8.1K bytes
    - Viewed (0)
  7. maven-core/src/test/java/org/apache/maven/settings/PomConstructionWithSettingsTest.java

            config.setLocalRepository(repositorySystem.createArtifactRepository(
                    "local", localRepoUrl, new DefaultRepositoryLayout(), null, null));
            config.setActiveProfileIds(settings.getActiveProfiles());
    
            DefaultRepositorySystemSession repoSession = MavenTestHelper.createSession(repositorySystem);
            LocalRepository localRepo =
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  8. 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();
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Dec 26 15:12:32 GMT 2022
    - 1.6K bytes
    - Viewed (0)
  9. 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");
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Sat Apr 15 17:24:20 GMT 2023
    - 8K bytes
    - Viewed (0)
  10. maven-compat/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java

                if (session != null) {
                    MavenExecutionRequest req = session.getRequest();
                    if (req != null) {
                        request.setActiveProfileIds(req.getActiveProfiles());
                        request.setInactiveProfileIds(req.getInactiveProfiles());
                    }
                }
            }
    
            return request;
        }
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Jun 15 14:24:56 GMT 2023
    - 12.1K bytes
    - Viewed (0)
Back to top