Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for rethrowFailure (0.17 sec)

  1. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/DefaultResolvedConfiguration.java

            return graphResults.hasAnyFailure();
        }
    
        @Override
        public void rethrowFailure() throws ResolveException {
            if (!graphResults.hasAnyFailure()) {
                return;
            }
    
            List<Throwable> failures = new ArrayList<>();
            graphResults.visitFailures(failures::add);
            resolutionHost.rethrowFailure("dependencies", failures);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 17:10:15 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/test/groovy/org/gradle/integtests/fixtures/executer/ForkingGradleHandleTest.groovy

            when:
            def executionResult = forkingGradleHandle.waitForFinish()
    
            then:
            1 * execHandle.waitForFinish() >> execResult
            0 * execHandle._
            1 * execResult.rethrowFailure()
            1 * execResult.getExitValue() >> SUCCESS_EXIT_VALUE
            1 * resultAssertion.execute(_)
            executionResult instanceof OutputScrapingExecutionResult
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/ExclusiveCacheAccessingWorker.java

                FlushOperationsCommand flushOperationsCommand = new FlushOperationsCommand();
                addToQueue(flushOperationsCommand);
                flushOperationsCommand.await();
            }
            rethrowFailure();
        }
    
        private void rethrowFailure() {
            failureHandler.onStop();
        }
    
        private static class FlushOperationsCommand implements Runnable {
            private CountDownLatch latch = new CountDownLatch(1);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  4. platforms/core-runtime/process-services/src/main/java/org/gradle/process/ExecResult.java

        /**
         * Re-throws any failure executing this process.
         *
         * @return this
         * @throws ExecException the execution failure
         */
        ExecResult rethrowFailure() throws ExecException;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/ForkingGradleHandle.java

        public void waitForExit() {
            getExecHandle().waitForFinish().rethrowFailure();
        }
    
        private ExecutionResult waitForStop(boolean expectFailure) {
            ExecResult execResult = getExecHandle().waitForFinish();
            if (durationMeasurement != null) {
                durationMeasurement.stop();
            }
            execResult.rethrowFailure(); // nop if all ok
    
            String output = getStandardOutput();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/configurations/ResolutionHost.java

            return Describables.of(displayName(), type);
        }
    
        /**
         * Rethrows the provided failures. Does nothing if the list of failures is empty.
         */
        default void rethrowFailure(String type, Collection<Throwable> failures) {
            mapFailure(type, failures).ifPresent(e -> {
                throw e;
            });
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 11:33:46 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/configurations/DefaultArtifactCollection.java

                Set<ResolvedArtifactResult> artifactResults = visitor.getArtifacts();
                Set<Throwable> failures = visitor.getFailures();
    
                if (!lenient) {
                    resolutionHost.rethrowFailure("artifacts", failures);
                }
                return new ArtifactSetResult(artifactResults, failures);
            });
        }
    
        @Override
        public ResolutionHost getResolutionHost() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:26:24 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/configurations/ResolutionBackedFileCollection.java

         *
         * @throws ArtifactVariantSelectionException subtypes
         */
        private void maybeThrowResolutionFailures(ResolvedFileCollectionVisitor collectingVisitor) {
            if (!lenient) {
                resolutionHost.rethrowFailure("files", collectingVisitor.getFailures());
            }
        }
    
        @Override
        protected void appendContents(TreeFormatter formatter) {
            formatter.node("contains: " + getDisplayName());
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 20:48:26 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. subprojects/core-api/src/main/java/org/gradle/api/artifacts/ResolvedConfiguration.java

         *
         * <p>This method does nothing when resolution was successful.</p>
         *
         * @throws ResolveException when the resolve was not successful.
         */
        void rethrowFailure() throws ResolveException;
    
        /**
         * Returns the files for the configuration dependencies.
         *
         * @return The artifact files of the specified dependencies.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 17:10:15 UTC 2024
    - 4K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/ProcessFixture.groovy

                    .setStandardOutput(output)
                    .workingDir(new File(".").absoluteFile) //does not matter
                    .build()
            e.start()
            def result = e.waitForFinish()
            result.rethrowFailure()
    
            return output.toString()
        }
    
        private static Object[] killArgs(Long pid, boolean killTree) {
            if (OperatingSystem.current().unix) {
                // start shell, read script from stdin
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top