- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 23 for beforeTask (0.14 sec)
-
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.beforeTask(closure) taskGraph.beforeTask(action) taskExecutionListeners.source.beforeExecute(a) taskExecutionListeners.source.beforeExecute(b) then: 1 * closure.call(a) 1 * closure.call(b)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 05 16:29:26 UTC 2024 - 20.6K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/plugins/ide/tooling/m3/ToolingApiEclipseModelCrossVersionSpec.groovy
fullProject.projectDependencies.empty } def "does not run any tasks when fetching model"() { when: projectDir.file('build.gradle').text = ''' apply plugin: 'java' gradle.taskGraph.beforeTask { throw new RuntimeException() } ''' HierarchicalEclipseProject project = loadToolingModel(HierarchicalEclipseProject) then: project != null }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 11.4K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheProblemReportingIntegrationTest.groovy
"TaskExecutionGraph.addTaskExecutionListener" | "gradle.taskGraph.addTaskExecutionListener(new TaskExecutionAdapter())" "TaskExecutionGraph.beforeTask" | "gradle.taskGraph.beforeTask {}" "TaskExecutionGraph.afterTask" | "gradle.taskGraph.afterTask {}" } def "reports unsupported build listener #listenerType registration on #registrationPoint"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 56.7K bytes - Viewed (0) -
platforms/documentation/docs/src/docs/userguide/releases/upgrading/upgrading_version_7.adoc
- Method link:{javadocPath}/org/gradle/api/execution/TaskExecutionGraph.html#beforeTask-org.gradle.api.Action-[TaskExecutionGraph.beforeTask()] - Method link:{javadocPath}/org/gradle/api/execution/TaskExecutionGraph.html#afterTask-org.gradle.api.Action-[TaskExecutionGraph.afterTask()]
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 01 15:00:23 UTC 2024 - 87.7K bytes - Viewed (0) -
platforms/ide/tooling-api-builders/src/test/groovy/org/gradle/tooling/internal/provider/runner/ClientProvidedPhasedActionRunnerTest.groovy
result.buildFailure == null result.clientFailure == null and: 1 * buildController.fromBuildModel(_, _) >> { Boolean b, BuildTreeModelAction modelAction -> modelAction.beforeTasks(modelController) modelAction.fromBuildModel(modelController) } 1 * projectsLoadedAction.execute(_) >> result1 1 * buildFinishedAction.execute(_) >> result2
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jun 05 08:56:14 UTC 2024 - 6.6K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/buildtree/DefaultBuildTreeModelCreator.java
) { this.defaultTarget = defaultTarget; this.actionRunner = actionRunner; } @Override public <T> void beforeTasks(BuildTreeModelAction<? extends T> action) { action.beforeTasks(new DefaultBuildTreeModelController()); } @Override public <T> T fromBuildModel(BuildTreeModelAction<? extends T> action) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 20 17:58:18 UTC 2023 - 3.1K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/ConfigurationCacheAwareBuildTreeModelCreator.kt
private val delegate: BuildTreeModelCreator, private val cache: BuildTreeConfigurationCache ) : BuildTreeModelCreator { override fun <T : Any> beforeTasks(action: BuildTreeModelAction<out T>) { cache.maybePrepareModel { delegate.beforeTasks(action) } } override fun <T : Any?> fromBuildModel(action: BuildTreeModelAction<out T>): T? { return cache.loadOrCreateModel {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 1.4K bytes - Viewed (0) -
testing/architecture-test/src/changes/archunit-store/public-api-methods-return-allowed-types.txt
Method <org.gradle.api.execution.TaskExecutionGraph.beforeTask(groovy.lang.Closure)> has arguments/return type groovy.lang.Closure that is not Gradle public API or primitive or built-in JDK classes or Kotlin classes in (TaskExecutionGraph.java:0)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 12:21:31 UTC 2024 - 91.3K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/buildtree/BuildTreeModelAction.java
* limitations under the License. */ package org.gradle.internal.buildtree; import javax.annotation.Nullable; public interface BuildTreeModelAction<T> { void beforeTasks(BuildTreeModelController controller); @Nullable T fromBuildModel(BuildTreeModelController controller);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jun 05 08:55:55 UTC 2024 - 870 bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/buildtree/BuildTreeModelCreator.java
package org.gradle.internal.buildtree; import javax.annotation.Nullable; /** * Responsible for creating a model from the build tree model. */ public interface BuildTreeModelCreator { <T> void beforeTasks(BuildTreeModelAction<? extends T> action); @Nullable <T> T fromBuildModel(BuildTreeModelAction<? extends T> action);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jun 05 08:55:55 UTC 2024 - 957 bytes - Viewed (0)