Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for activation (0.07 sec)

  1. compat/maven-model-builder/src/test/resources/poms/validation/raw-model/profile-activation-file-with-project-expressions.xml

        <profile>
          <id>exists-project-version</id>
          <activation>
            <file>
              <exists>${project.version}/test.txt</exists>
            </file>
          </activation>
        </profile>
        <profile>
          <id>missing-project-version</id>
          <activation>
            <file>
              <missing>${project.version}/test.txt</missing>
            </file>
          </activation>
        </profile>
    
      </profiles>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/test/resources/poms/validation/raw-model/profile-activation-file-with-allowed-expressions.xml

          <activation>
            <file>
              <exists>${project.basedir}/test.txt</exists>
            </file>
          </activation>
        </profile>
        <profile>
          <id>missing-project-basedir</id>
          <activation>
            <file>
              <missing>${project.basedir}/test.txt</missing>
            </file>
          </activation>
        </profile>
    
        <profile>
          <id>dynamic-property-available</id>
          <activation>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/test/resources/poms/validation/raw-model/profile-activation-property-with-project-expressions.xml

          <activation>
            <property>
              <name>${project.version}</name>
            </property>
          </activation>
        </profile>
        <profile>
          <id>property-value-project-version</id>
          <activation>
            <property>
              <name>project.version</name>
              <value>${project.version}</value>
            </property>
          </activation>
        </profile>
    
      </profiles>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/profiles/manager/DefaultProfileManagerTest.java

            Profile osActivated = new Profile();
            osActivated.setId( "os-profile" );
    
            Activation osActivation = new Activation();
    
            ActivationOS activationOS = new ActivationOS();
    
            activationOS.setName( "!dddd" );
    
            osActivation.setOs( activationOS );
    
            osActivated.setActivation( osActivation );
    
            Properties props = System.getProperties();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. compat/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: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/OperatingSystemProfileActivator.java

            Activation activation = profile.getActivation();
    
            if (activation == null) {
                return false;
            }
    
            ActivationOS os = activation.getOs();
    
            return os != null;
        }
    
        private boolean ensureAtLeastOneNonNull(ActivationOS os) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. compat/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: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/execution/ProjectActivation.java

            final ActivationSettings settings = ActivationSettings.of(active, optional);
            this.activations.add(new ProjectActivationSettings(selector, settings));
        }
    
        private Stream<ProjectActivationSettings> getProjects(final Predicate<ActivationSettings> predicate) {
            return this.activations.stream().filter(activation -> predicate.test(activation.activationSettings));
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/OperatingSystemProfileActivatorTest.java

        @Override
        @BeforeEach
        void setUp() throws Exception {
            activator = new OperatingSystemProfileActivator();
        }
    
        private Profile newProfile(ActivationOS.Builder activationBuilder) {
            Activation a = Activation.newBuilder().os(activationBuilder.build()).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
    - 6.2K bytes
    - Viewed (0)
  10. compat/maven-model/src/test/java/org/apache/maven/model/ActivationTest.java

    /**
     * Tests {@code Activation}.
     *
     */
    class ActivationTest {
    
        @Test
        void testHashCodeNullSafe() {
            new Activation().hashCode();
        }
    
        @Test
        void testEqualsNullSafe() {
            assertFalse(new Activation().equals(null));
    
            new Activation().equals(new Activation());
        }
    
        @Test
        void testEqualsIdentity() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top