Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 95 for isActive (0.2 sec)

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

    /**
     * Determines profile activation based on the project's packaging.
     */
    @Named("packaging")
    @Singleton
    public class PackagingProfileActivator implements ProfileActivator {
    
        @Override
        public boolean isActive(
                org.apache.maven.model.Profile profile, ProfileActivationContext context, ModelProblemCollector problems) {
            return getActivationPackaging(profile).map(p -> isPackaging(context, p)).orElse(false);
        }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Feb 15 08:42:00 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. maven-compat/src/main/java/org/apache/maven/profiles/activation/JdkPrefixProfileActivator.java

     * JdkPrefixProfileActivator
     */
    @Deprecated
    public class JdkPrefixProfileActivator extends DetectedProfileActivator {
        private static final String JDK_VERSION = System.getProperty("java.version");
    
        public boolean isActive(Profile profile) throws ProfileActivationException {
            Activation activation = profile.getActivation();
    
            String jdk = activation.getJdk();
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Sep 14 11:48:15 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. maven-model-builder/src/test/java/org/apache/maven/model/profile/DefaultProfileSelectorTest.java

        void testThrowingActivator() {
            DefaultProfileSelector selector = new DefaultProfileSelector();
            selector.addProfileActivator(new ProfileActivator() {
                @Override
                public boolean isActive(Profile profile, ProfileActivationContext context, ModelProblemCollector problems) {
                    throw new RuntimeException("BOOM");
                }
    
                @Override
                public boolean presentInConfig(
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Jun 06 16:51:39 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/AbstractProfileActivatorTest.java

        }
    
        protected void assertActivation(boolean active, Profile profile, ProfileActivationContext context) {
            SimpleProblemCollector problems = new SimpleProblemCollector();
    
            assertEquals(active, activator.isActive(new org.apache.maven.model.Profile(profile), context, problems));
    
            assertEquals(0, problems.getErrors().size(), problems.getErrors().toString());
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/profile/PackagingProfileActivator.java

    /**
     * Determines profile activation based on the project's packaging.
     */
    @Named("packaging")
    @Singleton
    public class PackagingProfileActivator implements ProfileActivator {
    
        @Override
        public boolean isActive(Profile profile, ProfileActivationContext context, ModelProblemCollector problems) {
            return getActivationPackaging(profile).map(p -> isPackaging(context, p)).orElse(false);
        }
    
        @Override
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. maven-compat/src/main/java/org/apache/maven/profiles/activation/OperatingSystemProfileActivator.java

        public boolean canDetermineActivation(Profile profile) {
            Activation activation = profile.getActivation();
            return activation != null && activation.getOs() != null;
        }
    
        public boolean isActive(Profile profile) {
            Activation activation = profile.getActivation();
            ActivationOS os = activation.getOs();
    
            boolean result = ensureAtLeastOneNonNull(os);
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Sep 22 06:01:36 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  7. maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/PropertyProfileActivator.java

     *
     * @see ActivationProperty
     */
    @Named("property")
    @Singleton
    public class PropertyProfileActivator implements ProfileActivator {
    
        @Override
        public boolean isActive(Profile profile, ProfileActivationContext context, ModelProblemCollector problems) {
            Activation activation = profile.getActivation();
    
            if (activation == null) {
                return false;
            }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Feb 28 07:40:37 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. maven-compat/src/main/java/org/apache/maven/profiles/activation/SystemPropertyProfileActivator.java

        }
    
        protected boolean canDetectActivation(Profile profile) {
            return profile.getActivation() != null && profile.getActivation().getProperty() != null;
        }
    
        public boolean isActive(Profile profile) throws ProfileActivationException {
            Activation activation = profile.getActivation();
    
            ActivationProperty property = activation.getProperty();
    
            if (property != null) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue May 09 23:46:02 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/api/services/model/ProfileActivator.java

         *            {@code null}.
         * @return {@code true} if the profile is active, {@code false} otherwise.
         */
        boolean isActive(Profile profile, ProfileActivationContext context, ModelProblemCollector problems);
    
        /**
         * Determines whether specified activation method is present in configuration or not. It should help to have AND
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/FileProfileActivator.java

            this.profileActivationFilePathInterpolator = profileActivationFilePathInterpolator;
        }
    
        @Override
        public boolean isActive(Profile profile, ProfileActivationContext context, ModelProblemCollector problems) {
            Activation activation = profile.getActivation();
    
            if (activation == null) {
                return false;
            }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Sep 26 17:50:21 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top