Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for addProfileActivator (0.08 sec)

  1. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/DefaultProfileSelectorTest.java

            profile.setActivation(activation);
            return profile;
        }
    
        @Test
        void testThrowingActivator() {
            DefaultProfileSelector selector = new DefaultProfileSelector();
            selector.addProfileActivator(new ProfileActivator() {
                @Override
                public boolean isActive(Profile profile, ProfileActivationContext context, ModelProblemCollector problems) {
                    throw new RuntimeException("BOOM");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/DefaultProfileSelector.java

        }
    
        @Inject
        public DefaultProfileSelector(List<ProfileActivator> activators) {
            this.activators = new ArrayList<>(activators);
        }
    
        public DefaultProfileSelector addProfileActivator(ProfileActivator profileActivator) {
            if (profileActivator != null) {
                activators.add(profileActivator);
            }
            return this;
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.3K bytes
    - Viewed (0)
Back to top