Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for afterTask (0.15 sec)

  1. subprojects/core/src/main/java/org/gradle/execution/taskgraph/DefaultTaskExecutionGraph.java

        }
    
        @Override
        public void afterTask(final Closure closure) {
            notifyListenerRegistration("TaskExecutionGraph.afterTask", closure);
            taskListeners.add(new ClosureBackedMethodInvocationDispatch("afterExecute", closure));
        }
    
        @Override
        public void afterTask(final Action<Task> action) {
            notifyListenerRegistration("TaskExecutionGraph.afterTask", action);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/continuous/ContinuousBuildChangeReportingIntegrationTest.groovy

        }
    
        @ToBeFixedForConfigurationCache(because = "taskGraph.afterTask")
        def "should report changes that happen when the build is executing"() {
            given:
            buildFile << """
                gradle.taskGraph.afterTask { Task task ->
                    if(task.path == ':theTask' && !file('changetrigged').exists()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/execution/taskgraph/DefaultTaskExecutionGraphSpec.groovy

            }
            def action = Mock(Action)
    
            final Task a = task("a")
            final Task b = task("b")
    
            when:
            taskGraph.afterTask(closure)
            taskGraph.afterTask(action)
            taskExecutionListeners.source.afterExecute(a, a.state)
            taskExecutionListeners.source.afterExecute(b, b.state)
    
            then:
            1 * closure.call(a)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 20.6K bytes
    - Viewed (0)
Back to top