Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 29 for rethrowFailure (0.5 sec)

  1. 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)
  2. 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)
  3. subprojects/core-api/src/main/java/org/gradle/BuildResult.java

         */
        public String getAction() {
            return action;
        }
    
        /**
         * <p>Rethrows the build failure. Does nothing if there was no build failure.</p>
         */
        public BuildResult rethrowFailure() {
            if (failure instanceof GradleException) {
                throw (GradleException) failure;
            }
            if (failure != null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 14 23:28:03 UTC 2021
    - 2K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/process/internal/DefaultExecHandle.java

                        throw UncheckedException.throwAsUncheckedException(e);
                    }
                }
    
                if (execResult != null) {
                    execResult.rethrowFailure();
                }
    
                LOGGER.info("Successfully started process '{}'", displayName);
            } finally {
                lock.unlock();
            }
            return this;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. subprojects/core/src/main/java/org/gradle/api/internal/project/ProjectStateInternal.java

        public boolean hasFailure() {
            return failure != null;
        }
    
        @Override
        public Throwable getFailure() {
            return failure;
        }
    
        @Override
        public void rethrowFailure() {
            if (failure != null) {
                throw failure;
            }
        }
    
        @Override
        public String toString() {
            String state;
    
            if (isConfiguring()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 12 07:52:05 UTC 2021
    - 3.8K bytes
    - Viewed (0)
  9. subprojects/core-api/src/main/java/org/gradle/api/tasks/TaskState.java

         */
        @Nullable
        Throwable getFailure();
    
        /**
         * Throws the task failure, if any. Does nothing if the task did not fail.
         */
        void rethrowFailure();
    
        /**
         * <p>Checks if the task actually did any work.  Even if a task executes, it may determine that it has nothing to
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Oct 05 07:18:07 UTC 2018
    - 2.6K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/api/internal/tasks/TaskStateInternal.java

            this.executing = executing;
        }
    
        @Override
        public Throwable getFailure() {
            return failure;
        }
    
        @Override
        public void rethrowFailure() {
            if (failure != null) {
                throw failure;
            }
        }
    
        @Override
        public boolean getSkipped() {
            return outcome != null && outcome.isSkipped();
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 29 19:57:41 UTC 2022
    - 4.4K bytes
    - Viewed (0)
Back to top