Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 44 for throwAsUncheckedException (0.38 sec)

  1. platforms/core-execution/build-cache-local/src/main/java/org/gradle/caching/local/internal/DirectoryBuildCache.java

                FileUtils.deleteQuietly(failedFile);
                //noinspection ResultOfMethodCallIgnored
                file.renameTo(failedFile);
    
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    
        @Override
        public void store(HashCode key, IoConsumer<OutputStream> result) {
            tempFileStore.withTempFile(key, file -> {
                try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:53 UTC 2024
    - 7K bytes
    - Viewed (0)
  2. platforms/jvm/language-jvm/src/main/java/org/gradle/api/internal/tasks/compile/daemon/AbstractDaemonCompiler.java

            if (result.isSuccess()) {
                return result;
            } else {
                throw UncheckedException.throwAsUncheckedException(result.getException());
            }
        }
    
        protected abstract DaemonForkOptions toDaemonForkOptions(T spec);
    
        protected abstract CompilerWorkerExecutor.CompilerParameters getCompilerParameters(T spec);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 13:00:39 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/caching/internal/controller/impl/LifecycleAwareBuildCacheControllerFactory.java

                    try {
                        controller.close();
                    } catch (IOException e) {
                        throw UncheckedException.throwAsUncheckedException(e);
                    }
                    throw new IllegalStateException("Build cache controller already set");
                }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 23:28:13 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top