Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for setActivation (0.65 sec)

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

    public class DefaultProfileSelectorTest {
        private Profile newProfile(String id) {
            Activation activation = new Activation();
            Profile profile = new Profile();
            profile.setId(id);
            profile.setActivation(activation);
            return profile;
        }
    
        @Test
        void testThrowingActivator() {
            DefaultProfileSelector selector = new DefaultProfileSelector();
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Jun 06 16:51:39 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

            for (Profile profile : model.getProfiles()) {
                Activation activation = profile.getActivation();
    
                if (activation == null) {
                    continue;
                }
    
                // restore activation
                profile.setActivation(activations.get(profile.getId()));
            }
        }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue May 21 09:54:32 UTC 2024
    - 82.9K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/profile/JdkVersionProfileActivator.java

        @Override
        public boolean isActive(Profile profile, ProfileActivationContext context, ModelProblemCollector problems) {
            Activation activation = profile.getActivation();
    
            if (activation == null) {
                return false;
            }
    
            String jdk = activation.getJdk();
    
            if (jdk == null) {
                return false;
            }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Jun 06 16:51:39 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  4. maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/JdkVersionProfileActivator.java

        @Override
        public boolean isActive(Profile profile, ProfileActivationContext context, ModelProblemCollector problems) {
            Activation activation = profile.getActivation();
    
            if (activation == null) {
                return false;
            }
    
            String jdk = activation.getJdk();
    
            if (jdk == null) {
                return false;
            }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Jun 06 16:51:39 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultProfileSelector.java

                    }
                }
            }
            return isActive;
        }
    
        private boolean isActiveByDefault(Profile profile) {
            Activation activation = profile.getActivation();
            return activation != null && activation.isActiveByDefault();
        }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Jun 06 16:51:39 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilder.java

        }
    
        private Map<String, Activation> getProfileActivations(Model model) {
            return model.getProfiles().stream()
                    .filter(p -> p.getActivation() != null)
                    .collect(Collectors.toMap(Profile::getId, Profile::getActivation));
        }
    
        private Model injectProfileActivations(Model model, Map<String, Activation> activations) {
            List<Profile> profiles = new ArrayList<>();
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Jun 07 07:31:02 UTC 2024
    - 61.9K bytes
    - Viewed (0)
  7. maven-model-builder/src/main/java/org/apache/maven/model/profile/DefaultProfileSelector.java

                    }
                }
            }
            return isActive;
        }
    
        private boolean isActiveByDefault(Profile profile) {
            Activation activation = profile.getActivation();
            return activation != null && activation.isActiveByDefault();
        }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Jun 06 16:51:39 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  8. maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/OperatingSystemProfileActivator.java

        private static final String REGEX_PREFIX = "regex:";
    
        @Override
        public boolean isActive(Profile profile, ProfileActivationContext context, ModelProblemCollector problems) {
            Activation activation = profile.getActivation();
    
            if (activation == null) {
                return false;
            }
    
            ActivationOS os = activation.getOs();
    
            if (os == null) {
                return false;
            }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Jun 05 14:16:41 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelValidator.java

                                "must be unique but found duplicate profile with id " + profile.getId(),
                                profile);
                    }
    
                    validate30RawProfileActivation(problems, profile.getActivation(), prefix);
    
                    validate20RawDependencies(
                            problems, profile.getDependencies(), prefix, "dependencies.dependency.", request);
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Jun 10 11:04:53 UTC 2024
    - 73.9K bytes
    - Viewed (0)
  10. maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java

                                "must be unique but found duplicate profile with id " + profile.getId(),
                                profile);
                    }
    
                    validate30RawProfileActivation(problems, profile.getActivation(), prefix);
    
                    validate20RawDependencies(
                            problems, profile.getDependencies(), prefix, "dependencies.dependency.", request);
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Sat May 18 14:09:22 UTC 2024
    - 76K bytes
    - Viewed (0)
Back to top