Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for getActivation (0.09 seconds)

  1. compat/maven-compat/src/main/java/org/apache/maven/profiles/activation/JdkPrefixProfileActivator.java

            return JDK_VERSION;
        }
    
        @Override
        protected boolean canDetectActivation(Profile profile) {
            return profile.getActivation() != null
                    && profile.getActivation().getJdk() != null
                    && !profile.getActivation().getJdk().isEmpty();
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 3K bytes
    - Click Count (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/profiles/activation/OperatingSystemProfileActivator.java

        @Override
        public boolean canDetermineActivation(Profile profile) {
            Activation activation = profile.getActivation();
            return activation != null && activation.getOs() != null;
        }
    
        @Override
        public boolean isActive(Profile profile) {
            Activation activation = profile.getActivation();
            ActivationOS os = activation.getOs();
    
            boolean result = ensureAtLeastOneNonNull(os);
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/profiles/activation/SystemPropertyProfileActivator.java

        }
    
        @Override
        protected boolean canDetectActivation(Profile profile) {
            return profile.getActivation() != null && profile.getActivation().getProperty() != null;
        }
    
        @Override
        public boolean isActive(Profile profile) throws ProfileActivationException {
            Activation activation = profile.getActivation();
    
            ActivationProperty property = activation.getProperty();
    
            if (property != null) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/profiles/activation/FileProfileActivator.java

        private Logger logger;
    
        @Override
        protected boolean canDetectActivation(Profile profile) {
            return profile.getActivation() != null && profile.getActivation().getFile() != null;
        }
    
        @Override
        public boolean isActive(Profile profile) {
            Activation activation = profile.getActivation();
    
            ActivationFile actFile = activation.getFile();
    
            if (actFile != null) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/profiles/DefaultProfileManager.java

                        + ") with new instance from source: " + profile.getSource());
            }
    
            profilesById.put(profile.getId(), profile);
    
            Activation activation = profile.getActivation();
    
            if (activation != null && activation.isActiveByDefault()) {
                activateAsDefault(profileId);
            }
        }
    
        /* (non-Javadoc)
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomBuilder.java

                    })
                    .filter(p -> !isEmpty(p))
                    .collect(Collectors.toList());
        }
    
        private static boolean isEmpty(Profile profile) {
            return profile.getActivation() == null
                    && profile.getBuild() == null
                    && profile.getDependencies().isEmpty()
                    && (profile.getDependencyManagement() == null
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Mar 04 19:49:40 GMT 2026
    - 22.3K bytes
    - Click Count (0)
  7. compat/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);
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Sep 03 15:06:05 GMT 2025
    - 66.8K bytes
    - Click Count (0)
  8. compat/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();
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 2.9K bytes
    - Click Count (0)
Back to Top