- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 36 for ResultHandler (0.28 sec)
-
platforms/ide/tooling-api/src/main/java/org/gradle/tooling/ResultHandler.java
*/ package org.gradle.tooling; /** * A handler for an asynchronous operation which returns an object of type T. * * @param <T> The result type. * @since 1.0-milestone-3 */ public interface ResultHandler<T> { /** * Handles successful completion of the operation. * * @param result the result * @since 1.0-milestone-3 */ void onComplete(T result); /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 1.2K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/CancellationSpec.groovy
latch.await() """ } void buildWasCancelled(TestResultHandler resultHandler, String failureMessage = 'Could not execute build using') { resultHandler.assertFailedWith(BuildCancelledException) assert resultHandler.failure.message.startsWith(failureMessage) if (targetIsGradle51OrLater()) { verifyBuildCancelledExceptionMessage(resultHandler) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 6.1K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/m3/ToolingApiLoggingCrossVersionSpec.groovy
} } """ when: def resultHandler = new TestResultHandler() def sync = server.expectAndBlock("waiting") def output = new TestOutputStream() withConnection { ProjectConnection connection -> def build = connection.newBuild() build.standardOutput = output build.forTasks("log") build.run(resultHandler) sync.waitForAllPendingCalls(resultHandler)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 2.4K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r26/TestLauncherCancellationCrossVersionSpec.groovy
def resultHandler = new TestResultHandler() when: withConnection { ProjectConnection connection -> def build = connection.newTestLauncher() build.withJvmTestClasses("Broken") build.withCancellationToken(cancel.token()) build.run(resultHandler) sync.waitForAllPendingCalls(resultHandler) cancel.cancel()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 1.7K bytes - Viewed (0) -
platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/ResultHandlerAdapter.java
package org.gradle.tooling.internal.consumer; import org.gradle.tooling.ResultHandler; import org.gradle.tooling.internal.protocol.ResultHandlerVersion1; /** * Adapts a {@link ResultHandler} to a {@link ResultHandlerVersion1}. * * @param <T> The result type. */ public class ResultHandlerAdapter<T> implements ResultHandlerVersion1<T> { private final ResultHandler<? super T> handler;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 12:11:05 UTC 2024 - 1.5K bytes - Viewed (0) -
platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/DefaultPhasedBuildActionExecuterTest.groovy
*/ package org.gradle.tooling.internal.consumer import org.gradle.test.fixtures.concurrent.ConcurrentSpec import org.gradle.tooling.GradleConnectionException import org.gradle.tooling.ResultHandler import org.gradle.tooling.internal.consumer.async.AsyncConsumerActionExecutor import org.gradle.tooling.internal.consumer.connection.ConsumerAction import org.gradle.tooling.internal.consumer.connection.ConsumerConnection
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 6K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r22/CancellationCrossVersionSpec.groovy
build.withCancellationToken(cancel.token()) build.run(resultHandler) sync.waitForAllPendingCalls(resultHandler) cancel.cancel() sync.releaseAll() resultHandler.finished() } then: buildWasCancelled(resultHandler) where: configureOnDemand << [true, false] }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 8.2K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r48/CancellationCrossVersionSpec.groovy
collectOutputs(build) build.run(resultHandler) sync.waitForAllPendingCalls(resultHandler) cancel.cancel() sync.releaseAll() resultHandler.finished() } then: configureWasCancelled(resultHandler, "Could not run phased build action using") }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 16 10:10:39 UTC 2024 - 2K bytes - Viewed (0) -
platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/DefaultPhasedBuildAction.java
private final BuildAction<T> buildAction; private final IntermediateResultHandler<? super T> resultHandler; DefaultBuildActionWrapper(BuildAction<T> buildAction, IntermediateResultHandler<? super T> resultHandler) { this.buildAction = buildAction; this.resultHandler = resultHandler; } @Override public BuildAction<T> getAction() { return buildAction;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 2.2K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r65/ToolingApiShutdownCrossVersionSpec.groovy
build.forTasks('hang').withCancellationToken(cancellation.token()).run(resultHandler) sync.waitForAllPendingCalls(resultHandler) cancellation.cancel() Thread.sleep(200) // The daemon seems to drop messages arriving the same time connector.disconnect() resultHandler.finished() then: resultHandler.assertFailedWith(BuildCancelledException) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 16 10:10:39 UTC 2024 - 11.5K bytes - Viewed (0)