Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 73 for activation (0.17 sec)

  1. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/FileProfileActivator.java

        @Override
        public boolean isActive(Profile profile, ProfileActivationContext context, ModelProblemCollector problems) {
            Activation activation = profile.getActivation();
    
            if (activation == null) {
                return false;
            }
    
            ActivationFile file = activation.getFile();
    
            if (file == null) {
                return false;
            }
    
            String path;
            boolean missing;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/PropertyProfileActivator.java

        @Override
        public boolean isActive(Profile profile, ProfileActivationContext context, ModelProblemCollector problems) {
            Activation activation = profile.getActivation();
    
            if (activation == null) {
                return false;
            }
    
            ActivationProperty property = activation.getProperty();
    
            if (property == null) {
                return false;
            }
    
            String name = property.getName();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/FileProfileActivatorTest.java

            return newProfile(activationFile);
        }
    
        private Profile newProfile(ActivationFile activationFile) {
            Activation activation = Activation.newBuilder().file(activationFile).build();
            return Profile.newBuilder().activation(activation).build();
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

                    activation = activation.clone();
                }
    
                activations.put(profile.getId(), activation);
            }
    
            return activations;
        }
    
        private void injectProfileActivations(Model model, Map<String, Activation> activations) {
            for (Profile profile : model.getProfiles()) {
                Activation activation = profile.getActivation();
    
                if (activation == null) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 83.6K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/ProfileSelector.java

        /**
         * Determines the profiles which are active in the specified activation context. Active profiles will eventually be
         * injected into the model.
         *
         * @param profiles The profiles whose activation status should be determined, must not be {@code null}.
         * @param context The environmental context used to determine the activation status of a profile, must not be
         *            {@code null}.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/PropertyProfileActivatorTest.java

        void setUp() throws Exception {
            activator = new PropertyProfileActivator();
        }
    
        private Profile newProfile(String key, String value) {
            ActivationProperty ap =
                    ActivationProperty.newBuilder().name(key).value(value).build();
    
            Activation a = Activation.newBuilder().property(ap).build();
    
            Profile p = Profile.newBuilder().activation(a).build();
    
            return p;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. 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)
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/profiles/activation/SystemPropertyProfileActivator.java

        }
    
        public boolean isActive(Profile profile) throws ProfileActivationException {
            Activation activation = profile.getActivation();
    
            ActivationProperty property = activation.getProperty();
    
            if (property != null) {
                String name = property.getName();
                boolean reverseName = false;
    
                if (name == null) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/JdkVersionProfileActivatorTest.java

        @Override
        @BeforeEach
        void setUp() throws Exception {
            activator = new JdkVersionProfileActivator();
        }
    
        private Profile newProfile(String jdkVersion) {
            Activation a = Activation.newBuilder().jdk(jdkVersion).build();
    
            Profile p = Profile.newBuilder().activation(a).build();
    
            return p;
        }
    
        private Properties newProperties(String javaVersion) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9K bytes
    - Viewed (0)
  10. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuildingRequest.java

        /**
         * Gets the file model to build (with profile activation).
         * If not set, model source will be used to load file model.
         *
         * @return The file model to build or {@code null} if not set.
         * @since 4.0.0
         */
        Model getFileModel();
    
        /**
         * Set the file model with profile activation
         *
         * @param fileModel
         * @return This request, never {@code null}.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.9K bytes
    - Viewed (0)
Back to top