Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for ProfileActivationContext (0.16 sec)

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

     *
     * @deprecated use {@link org.apache.maven.api.services.ModelBuilder} instead
     */
    @Deprecated(since = "4.0.0")
    public interface ProfileActivationContext {
        /**
         * Key of the property containing the project's packaging.
         * Available in {@link #getUserProperties()}.
         * @since 4.0.0
         */
        String PROPERTY_NAME_PACKAGING = "packaging";
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/DefaultProfileSelector.java

            }
            return this;
        }
    
        @Override
        public List<org.apache.maven.api.model.Profile> getActiveProfilesV4(
                Collection<org.apache.maven.api.model.Profile> profiles,
                ProfileActivationContext context,
                ModelProblemCollector problems) {
            return getActiveProfiles(profiles.stream().map(Profile::new).collect(Collectors.toList()), context, problems)
                    .stream()
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/OperatingSystemProfileActivator.java

    import org.apache.maven.model.Activation;
    import org.apache.maven.model.ActivationOS;
    import org.apache.maven.model.Profile;
    import org.apache.maven.model.building.ModelProblemCollector;
    import org.apache.maven.model.profile.ProfileActivationContext;
    import org.apache.maven.utils.Os;
    
    /**
     * Determines profile activation based on the operating system of the current runtime platform.
     *
     * @see ActivationOS
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/PackagingProfileActivator.java

        public boolean isActive(
                org.apache.maven.model.Profile profile, ProfileActivationContext context, ModelProblemCollector problems) {
            return getActivationPackaging(profile).map(p -> isPackaging(context, p)).orElse(false);
        }
    
        @Override
        public boolean presentInConfig(
                org.apache.maven.model.Profile profile, ProfileActivationContext context, ModelProblemCollector problems) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. compat/maven-compat/src/test/java/org/apache/maven/profiles/manager/DefaultProfileManagerTest.java

            osActivation.setOs( activationOS );
    
            osActivated.setActivation( osActivation );
    
            Properties props = System.getProperties();
            ProfileActivationContext ctx = new ProfileActivationContext( props, false );
    
            ProfileManager profileManager = new DefaultProfileManager( getContainer(), props );
    
            profileManager.addProfile( osActivated );
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/DefaultProfileSelectorTest.java

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

    import org.apache.maven.model.building.ModelProblem.Version;
    import org.apache.maven.model.building.ModelProblemCollector;
    import org.apache.maven.model.building.ModelProblemCollectorRequest;
    import org.apache.maven.model.profile.ProfileActivationContext;
    
    /**
     * Determines profile activation based on the version of the current Java runtime.
     *
     * @see Activation#getJdk()
     * @deprecated use {@link org.apache.maven.api.services.ModelBuilder} instead
     */
    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-model-builder/src/main/java/org/apache/maven/model/profile/activation/PropertyProfileActivator.java

    import org.apache.maven.model.building.ModelProblem.Version;
    import org.apache.maven.model.building.ModelProblemCollector;
    import org.apache.maven.model.building.ModelProblemCollectorRequest;
    import org.apache.maven.model.profile.ProfileActivationContext;
    
    /**
     * Determines profile activation based on the existence or value of some execution property.
     *
     * @see ActivationProperty
     * @deprecated use {@link org.apache.maven.api.services.ModelBuilder} instead
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/AbstractProfileActivatorTest.java

    import org.apache.maven.api.model.Profile;
    import org.apache.maven.model.building.SimpleProblemCollector;
    import org.apache.maven.model.profile.DefaultProfileActivationContext;
    import org.apache.maven.model.profile.ProfileActivationContext;
    import org.junit.jupiter.api.AfterEach;
    import org.junit.jupiter.api.BeforeEach;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    
    /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  10. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

                    profileProps.putAll(profile.getProperties());
                }
                profileProps.putAll(profileActivationContext.getUserProperties());
                profileActivationContext.setUserProperties(profileProps);
            }
    
            profileActivationContext.setProjectProperties(inputModel.getDelegate().getProperties());
            problems.setSource(inputModel);
            List<Profile> activePomProfiles =
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 83.6K bytes
    - Viewed (0)
Back to top