Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 193 for throwAsUncheckedException (0.35 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/ChainingHttpHandler.java

                while (this.requestsStarted < requestCount) {
                    try {
                        condition.await();
                    } catch (InterruptedException e) {
                        throw UncheckedException.throwAsUncheckedException(e);
                    }
                }
            } finally {
                lock.unlock();
            }
        }
    
        private static class RequestOutcome {
            final Lock lock;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/result/StreamingResolutionResultBuilder.java

    import java.util.HashMap;
    import java.util.HashSet;
    import java.util.List;
    import java.util.Map;
    import java.util.Set;
    import java.util.stream.Collectors;
    
    import static org.gradle.internal.UncheckedException.throwAsUncheckedException;
    
    public class StreamingResolutionResultBuilder implements DependencyGraphVisitor {
        private final static byte ROOT = 1;
        private final static byte COMPONENT = 2;
        private final static byte SELECTOR = 4;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 17:30:13 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  3. platforms/software/version-control/src/main/java/org/gradle/vcs/git/internal/DefaultGitVersionControlSpec.java

            try {
                setUrl(new URI(url));
            } catch (URISyntaxException e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    
        @Override
        public String getDisplayName() {
            return "Git repository at " + getUrl();
        }
    
        @Override
        public String getUniqueId() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/DistributionInstaller.java

                if (failure != null) {
                    if (failure instanceof Exception) {
                        throw (Exception) failure;
                    }
                    throw UncheckedException.throwAsUncheckedException(failure);
                }
            }
    
            private long withProgressLogging(URI address, File destination, OperationDescriptor operationDescriptor) throws Throwable {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/reflect/JavaReflectionUtil.java

                constructor.setAccessible(true);
                return constructor.newInstance();
            } catch (Throwable e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    
        /**
         * Returns the {@link TypeToken} of a parameter specified by index.
         *
         * @param beanType the TypeToken of the bean
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/deployment/internal/DefaultContinuousExecutionGate.java

                        // wait for it to open
                        opened.await();
                    }
                }
            } catch (InterruptedException e) {
                throw UncheckedException.throwAsUncheckedException(e);
            } finally {
                lock.unlock();
            }
        }
    
        @Override
        public String toString() {
            return "Gate is " + (!isClosed() ? "open" : "closed");
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  7. platforms/core-runtime/concurrent/src/main/java/org/gradle/internal/concurrent/ExecutorPolicy.java

            public void onStop() {
                // Rethrow the first failure
                Throwable failure = this.failure.getAndSet(null);
                if (failure != null) {
                    throw UncheckedException.throwAsUncheckedException(failure);
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  8. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/fixture/MavenBuildExperimentRunner.java

                scenarioInvoker.run(scenarioDefinition, invocationSettings, resultConsumer);
            } catch (IOException e) {
                throw UncheckedException.throwAsUncheckedException(e);
            } finally {
                try {
                    Logging.resetLogging();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. platforms/software/testing-base-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/worker/TestWorker.java

                        executeAndMaintainThreadName(runQueue.take());
                    }
                } catch (InterruptedException e) {
                    throw UncheckedException.throwAsUncheckedException(e);
                }
            } finally {
                LOGGER.info("{} finished executing tests.", workerProcessContext.getDisplayName());
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 10K bytes
    - Viewed (0)
  10. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/FixedExclusiveModeCrossProcessCacheAccess.java

                }
                onOpenAction.accept(fileLock);
            } catch (Exception e) {
                fileLock.close();
                throw UncheckedException.throwAsUncheckedException(e);
            }
            this.fileLock = fileLock;
        }
    
        @Override
        public void close() {
            if (fileLock != null) {
                try {
                    onCloseAction.accept(fileLock);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 01 12:21:15 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top