Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for addTaskExecutionGraphListener (0.33 sec)

  1. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/CrossProjectConfigurationReportingTaskExecutionGraph.kt

            is CrossProjectConfigurationReportingTaskExecutionGraph -> taskGraph.delegate
            else -> taskGraph
        }
    
        override fun addTaskExecutionGraphListener(listener: TaskExecutionGraphListener) {
            delegate.addTaskExecutionGraphListener(listener.wrap())
        }
    
        override fun removeTaskExecutionGraphListener(listener: TaskExecutionGraphListener) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  2. subprojects/core-api/src/main/java/org/gradle/api/execution/TaskExecutionGraph.java

     * #whenReady(groovy.lang.Closure)} or {@link #addTaskExecutionGraphListener(TaskExecutionGraphListener)}.</p>
     */
    public interface TaskExecutionGraph {
        /**
         * <p>Adds a listener to this graph, to be notified when this graph is ready.</p>
         *
         * @param listener The listener to add. Does nothing if this listener has already been added.
         */
        void addTaskExecutionGraphListener(TaskExecutionGraphListener listener);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 20:29:51 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/execution/taskgraph/DefaultTaskExecutionGraph.java

                )
            );
        }
    
        @Override
        public void addTaskExecutionGraphListener(TaskExecutionGraphListener listener) {
            graphListeners.add(
                decorateListener("TaskExecutionGraph.addTaskExecutionGraphListener", listener)
            );
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/BuildEventsErrorIntegrationTest.groovy

            buildFile << """
        def listener = {
                throw new RuntimeException('broken')
        } as TaskExecutionGraphListener
        gradle.taskGraph.addTaskExecutionGraphListener(listener)
        task a
    """
    
            when:
            fails()
    
            then:
            failure.assertHasDescription("broken")
                    .assertHasNoCause()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/configuration/ExecuteUserLifecycleListenerBuildOperationIntegrationTest.groovy

                    }
                })
                gradle.taskGraph.addTaskExecutionGraphListener(new TaskExecutionGraphListener() {
                    void graphPopulated(TaskExecutionGraph graph) {
                        println "gradle.taskGraph.addTaskExecutionGraphListener(TaskExecutionGraphListener) from $source"
                    }
                })
                gradle.taskGraph.whenReady({
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 40.2K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/execution/taskgraph/DefaultTaskExecutionGraphSpec.groovy

                listenerRegistrationListener,
                Stub(ServiceRegistry)
            )
            TaskExecutionGraphListener listener = Mock(TaskExecutionGraphListener)
    
            when:
            taskGraph.addTaskExecutionGraphListener(listener)
            def finalizedPlan = Stub(FinalizedExecutionPlan)
            taskGraph.populate(finalizedPlan)
            taskGraph.execute(finalizedPlan)
    
            then:
            1 * listener.graphPopulated(_)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsAccessFromGroovyDslIntegrationTest.groovy

            where:
            statement                                                             | line
            "gradle.taskGraph.whenReady { graph -> graph.hasTask(':x:unknown') }" | 7
            "gradle.taskGraph.addTaskExecutionGraphListener(new MyListener())"    | 4
        }
    
        def "checking cross-project model access in task graph call `#statement` with #tasksToRun, should succeed: #shouldSucceed"() {
            createDirs("b")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 32.4K bytes
    - Viewed (0)
Back to top