Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for findUnsatisfiedSpec (0.6 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/execution/DescribingAndSpecTest.groovy

            spec == DescribingAndSpec.empty()
            spec.isEmpty()
            spec.findUnsatisfiedSpec(dummyObject) == null
            spec.isSatisfiedBy(dummyObject)
        }
    
        void isSatisfiedWithTrue() {
            when:
            def spec = new DescribingAndSpec<Object>({ true }, "must be true")
    
            then:
            !spec.isEmpty()
            spec.findUnsatisfiedSpec(dummyObject) == null
            spec.isSatisfiedBy(dummyObject)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Dec 26 22:54:09 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/execution/SkipOnlyIfTaskExecuterTest.groovy

            then:
            1 * spec.findUnsatisfiedSpec(task) >> null
            1 * delegate.execute(task, state, executionContext) >> TaskExecuterResult.WITHOUT_OUTPUTS
            noMoreInteractions()
        }
    
        def skipsTaskWhoseOnlyIfPredicateIsFalse() {
            when:
            executer.execute(task, state, executionContext)
    
            then:
            1 * spec.findUnsatisfiedSpec(task) >> Mock(SelfDescribingSpec)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 24 11:36:30 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/api/internal/tasks/execution/DescribingAndSpec.java

        @Override
        public boolean isSatisfiedBy(T element) {
            return specHolder.isSatisfiedBy(element);
        }
    
        @Nullable
        public SelfDescribingSpec<? super T> findUnsatisfiedSpec(T element) {
            return Cast.uncheckedCast(specHolder.findUnsatisfiedSpec(element));
        }
    
        public DescribingAndSpec<T> and(Spec<? super T> spec, String description) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 28 22:10:10 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  4. platforms/core-configuration/base-services-groovy/src/main/java/org/gradle/api/specs/AndSpec.java

            return findUnsatisfiedSpec(object) == null;
        }
    
        /**
         * Finds the first {@link Spec} that is not satisfied by the object.
         *
         * @param object to check specs against
         * @return an unsatisfied spec or null
         *
         * @since 7.6
         */
        @Nullable
        @Incubating
        public Spec<? super T> findUnsatisfiedSpec(T object) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 11:17:19 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. subprojects/core/src/testFixtures/groovy/org/gradle/api/tasks/AbstractTaskTest.groovy

            def disabledSpec = task.getOnlyIf().findUnsatisfiedSpec(task)
            disabledSpec != null
            disabledSpec.displayName == "Task is enabled"
    
            when:
            task.setEnabled(true)
            condition1.set(false)
    
            then:
            !task.getOnlyIf().isSatisfiedBy(task)
            def condition1Spec = task.getOnlyIf().findUnsatisfiedSpec(task)
            condition1Spec != null
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/api/internal/tasks/execution/SkipOnlyIfTaskExecuter.java

                if (onlyIf instanceof DescribingAndSpec) {
                    DescribingAndSpec<? super TaskInternal> describingAndSpec = Cast.uncheckedCast(onlyIf);
                    unsatisfiedSpec = describingAndSpec.findUnsatisfiedSpec(task);
                } else {
                    if (!onlyIf.isSatisfiedBy(task)) {
                        unsatisfiedSpec = onlyIf;
                    }
                }
            } catch (Throwable t) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 24 11:36:30 UTC 2023
    - 3.3K bytes
    - Viewed (0)
Back to top