Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 66 for throwAsUncheckedException (0.47 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/DefaultProvider.java

            try (EvaluationContext.ScopeContext ignored = openScope()) {
                return Value.ofNullable(value.call());
            } catch (Exception e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 17 23:22:41 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/initialization/buildsrc/BuildSrcDetector.java

            try (Stream<Path> directoryContents = Files.walk(directory.toPath())) {
                return directoryContents.anyMatch(Files::isRegularFile);
            } catch (IOException e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 09:18:31 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/client/NotifyDaemonAboutChangedPathsClient.java

                }
                connection.dispatch(new Finished());
            } catch (Throwable e) {
                failure = e;
            }
            if (failure != null) {
                throw UncheckedException.throwAsUncheckedException(failure);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. platforms/core-runtime/concurrent/src/main/java/org/gradle/internal/concurrent/AbstractManagedExecutor.java

                }
            } catch (InterruptedException e) {
                delegate.shutdownNow();
                throw UncheckedException.throwAsUncheckedException(e);
            }
            executorPolicy.onStop();
        }
    
        @Override
        public void setKeepAlive(int timeout, TimeUnit timeUnit) {
            if (delegate instanceof ThreadPoolExecutor) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  8. platforms/core-runtime/daemon-services/src/main/java/org/gradle/internal/daemon/clientinput/StdInStream.java

            }
            while (readPos == buffer.length && !closed) {
                try {
                    lock.wait();
                } catch (InterruptedException e) {
                    throw UncheckedException.throwAsUncheckedException(e);
                }
            }
        }
    
        @Override
        public void close() {
            synchronized (lock) {
                // Allow threads to read anything still buffered
                closed = true;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  9. platforms/core-runtime/daemon-services/src/main/java/org/gradle/internal/daemon/serialization/DaemonSidePayloadClassLoaderFactory.java

            for (URI uri : classpath) {
                try {
                    urls.add(uri.toURL());
                } catch (MalformedURLException e) {
                    throw UncheckedException.throwAsUncheckedException(e);
                }
            }
            return urls;
        }
    
        private ClassLoader createClassLoaderForClassPath(String name, List<? extends ClassLoader> parents, List<URL> classpath) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/async/ServiceLifecycle.java

                }
                while (!usages.isEmpty()) {
                    try {
                        condition.await();
                    } catch (InterruptedException e) {
                        throw UncheckedException.throwAsUncheckedException(e);
                    }
                }
                if (state != State.STOPPED) {
                    state = State.STOPPED;
                }
            } finally {
                lock.unlock();
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:55 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top