Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 115 for throwAsUncheckedException (0.4 sec)

  1. 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)
  2. subprojects/build-events/src/main/java/org/gradle/internal/build/event/DefaultBuildEventsListenerRegistry.java

                    Object next;
                    try {
                        next = events.take();
                    } catch (InterruptedException e) {
                        throw UncheckedException.throwAsUncheckedException(e);
                    }
                    if (next == END) {
                        return;
                    }
                    try {
                        handle(Cast.uncheckedNonnullCast(next));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 05 19:34:01 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  3. 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)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/GradleBackedArtifactBuilder.java

                        writer.println("manifest.attributes(attrs)");
                    }
                    writer.println("}");
                }
            } catch (FileNotFoundException e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
            executer.inDirectory(rootDir).withTasks("clean", "jar").run();
        }
    
        private boolean isGradleExecuterVersionLessThan(String version) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classloader/ClassLoaderUtils.java

                URLConnection urlConnection = url.openConnection();
                urlConnection.setDefaultUseCaches(false);
            } catch (IOException e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    
        static Package[] getPackages(ClassLoader classLoader) {
            return CLASS_LOADER_PACKAGES_FETCHER.getPackages(classLoader);
        }
    
        @Nullable
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  6. platforms/core-execution/workers/src/main/java/org/gradle/workers/internal/WorkerDaemonStarter.java

            return CollectionUtils.collect(spec.getClasspath(), url -> {
                try {
                    return new File(url.toURI());
                } catch (URISyntaxException e) {
                    throw UncheckedException.throwAsUncheckedException(e);
                }
            });
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 19 14:39:33 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/api/internal/tasks/execution/TaskExecution.java

                            } else {
                                throw UncheckedException.throwAsUncheckedException(failures.get(0));
                            }
                        }
    
                        if (actionFailure != null) {
                            context.failed(actionFailure);
                            throw UncheckedException.throwAsUncheckedException(actionFailure);
                        }
                    } finally {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/inspect/ModelRuleSourceDetector.java

                            }
                        })
                        .filter(Predicates.notNull());
            } catch (ExecutionException e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    
        public boolean hasRules(Class<?> container) {
            return !Iterables.isEmpty(getDeclaredSources(container));
        }
    
        private boolean isRuleSource(Class<?> clazz) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  9. platforms/core-runtime/logging/src/main/java/org/gradle/internal/problems/failure/FailurePrinter.java

            }
    
            public void print(Failure failure) {
                try {
                    printRecursively("", "", null, failure);
                } catch (IOException e) {
                    throw UncheckedException.throwAsUncheckedException(e);
                }
            }
    
            private void printRecursively(String caption, String prefix, @Nullable Failure parent, Failure failure) throws IOException {
                builder.append(prefix)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 23:45:41 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/FixedSharedModeCrossProcessCacheAccess.java

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