- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 16 for getActiveProfiles (0.1 seconds)
-
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()); } @TestCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sun Mar 30 23:08:36 GMT 2025 - 6.4K bytes - Click Count (0) -
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);
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 6.9K bytes - Click Count (0) -
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()))); } @TestCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 17:20:31 GMT 2025 - 33.7K bytes - Click Count (0) -
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");
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Nov 28 09:44:37 GMT 2025 - 9.3K bytes - Click Count (0) -
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();Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sat Apr 19 18:49:57 GMT 2025 - 12K bytes - Click Count (0) -
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() {
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Mon Mar 24 22:23:23 GMT 2025 - 8.7K bytes - Click Count (0) -
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);Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Feb 25 08:27:34 GMT 2025 - 1.9K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/DefaultProfileSelector.java
if (profileActivator != null) { activators.add(profileActivator); } return this; } @Override public List<Profile> getActiveProfiles( Collection<Profile> profiles, ProfileActivationContext context, ModelProblemCollector problems) { Collection<String> activatedIds = new HashSet<>(context.getActiveProfileIds());
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Feb 25 08:27:34 GMT 2025 - 4.6K bytes - Click Count (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/DefaultProfileSelectorTest.java
DefaultProfileActivationContext context = new DefaultProfileActivationContext(); SimpleProblemCollector problems = new SimpleProblemCollector(); List<Profile> active = selector.getActiveProfiles(profiles, context, problems); assertTrue( active.isEmpty(), "Expected collection to be empty but had " + active.size() + " elements: " + active); assertEquals(1, problems.getErrors().size());
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 2.9K bytes - Click Count (0) -
impl/maven-core/src/test/java/org/apache/maven/settings/PomConstructionWithSettingsTest.java
config.setLocalRepository(MavenRepositorySystem.createArtifactRepository( "local", absolutePath, new DefaultRepositoryLayout(), null, null)); config.setActiveProfileIds(settings.getActiveProfiles()); DefaultRepositorySystemSession repoSession = MavenTestHelper.createSession(repositorySystem, container); LocalRepository localRepo =
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Mon Sep 29 14:45:25 GMT 2025 - 5.5K bytes - Click Count (0)