Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 66 for throwAsUncheckedException (0.32 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/conflicts/DefaultConflictHandler.java

            ConflictResolverDetails<ComponentState> details = new DefaultConflictResolverDetails<>(conflict.candidates);
            resolver.select(details);
            if (details.hasFailure()) {
                throw UncheckedException.throwAsUncheckedException(details.getFailure());
            }
            ComponentResolutionState selected = details.getSelected();
            ConflictResolutionResult result = new DefaultConflictResolutionResult(conflict.participants, selected);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 02:21:08 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/execution/plan/SingleFileTreeElementMatcher.java

            @Override
            public InputStream open() {
                try {
                    return Files.newInputStream(file.toPath());
                } catch (IOException e) {
                    throw UncheckedException.throwAsUncheckedException(e);
                }
            }
    
            @Override
            public void copyTo(OutputStream output) {
                throw new UnsupportedOperationException("Copy to not supported for filters");
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 15:25:10 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/tasks/CachingTaskDependencyResolveContext.java

                if (task != null) {
                    throw new TaskDependencyResolveException(format("Could not determine the dependencies of %s.", task), e);
                } else {
                    throw UncheckedException.throwAsUncheckedException(e);
                }
            } finally {
                queue.clear();
                this.task = null;
            }
        }
    
        @Override
        @Nullable
        public Task getTask() {
            return task;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 20:48:26 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/configuration/ScriptPluginFactorySelector.java

                    try {
                        return getClass().getClassLoader().loadClass(providerClassName);
                    } catch (ClassNotFoundException e) {
                        throw UncheckedException.throwAsUncheckedException(e);
                    }
                }
            };
        }
    
        private final ScriptPluginFactory defaultScriptPluginFactory;
        private final ProviderInstantiator providerInstantiator;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 24 07:44:44 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/internal/buildtree/IntermediateBuildActionRunner.java

                for (RunnableBuildOperation action : actions) {
                    try {
                        action.run(null);
                    } catch (Exception e) {
                        throw UncheckedException.throwAsUncheckedException(e);
                    }
                }
            }
        }
    
        @NonNullApi
        private static class NestedAction<T> implements RunnableBuildOperation {
            private final String displayName;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 08 07:46:55 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top