- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for maybeFailed (0.12 sec)
-
subprojects/core/src/test/groovy/org/gradle/internal/build/ExecutionResultTest.groovy
} def "can query failed result with multiple exceptions"() { def failure1 = new RuntimeException() def failure2 = new RuntimeException() def result = ExecutionResult.maybeFailed([failure1, failure2]) expect: result.failures == [failure1, failure2] result.failure instanceof MultipleBuildFailures result.failure.causes == [failure1, failure2]
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 03 03:31:42 UTC 2023 - 5.6K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/build/ExecutionResult.java
} public static ExecutionResult<Void> maybeFailed(List<? extends Throwable> failures) { if (failures.isEmpty()) { return SUCCESS; } else { return new Failure<>(ImmutableList.copyOf(failures)); } } public static ExecutionResult<Void> maybeFailed(@Nullable Throwable failure) { if (failure == null) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 03 03:31:42 UTC 2023 - 6.8K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/internal/build/DefaultBuildLifecycleControllerTest.groovy
def failures = other == null ? [failure] : [failure, other] 1 * workExecutor.execute(gradleMock, finalizedPlan) >> ExecutionResult.maybeFailed(failures) } private void expectBuildFinished(String action = "Build") { 1 * buildListener.buildFinished({ it.failure == null && it.action == action })
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 21 11:17:11 UTC 2024 - 20.3K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/execution/plan/DefaultPlanExecutor.java
List<Throwable> failures = new ArrayList<>(); awaitCompletion(workSource, currentWorkerLease, failures); return ExecutionResult.maybeFailed(failures); } @Override public void assertHealthy() { // Wait until execution state is healthy.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 05 16:29:26 UTC 2024 - 29.1K bytes - Viewed (0)