Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for hasAncestor (0.1 sec)

  1. platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/ProgressEvents.groovy

            }
    
            boolean hasAncestor(Operation ancestor) {
                return hasAncestor({ it == ancestor })
            }
    
            boolean hasAncestor(Predicate<? super Operation> predicate) {
                return parent == null
                    ? false
                    : (predicate.test(parent) || parent.hasAncestor(predicate))
            }
        }
    
        static class OperationStatus {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 23 13:50:05 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r35/BuildProgressCrossVersionSpec.groovy

            def compileJavaActions = events.operations.findAll { it.descriptor.displayName.matches('Execute .*( action [0-9]+/[0-9]+)? for :compileJava') }
            compileJavaActions.size() > 0
            compileJavaActions[0].hasAncestor { it.descriptor.displayName == 'Task :compileJava' }
        }
    
        @TargetGradleVersion('>=3.5 <5.1')
        def "generates events for worker actions (pre 5.1)"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top