Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 64 for throwAsUncheckedException (0.35 sec)

  1. platforms/software/resources-http/src/main/java/org/gradle/internal/resource/transport/http/HttpClientConfigurer.java

                        return true;
                    }
                }
                return false;
            } catch (Exception e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    
        Collection<String> supportedTlsVersions() {
            return Arrays.asList(sslProtocols);
        }
    
        private final String[] sslProtocols;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 18.5K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/AbstractLineEndingSensitivityIntegrationSpec.groovy

                        try {
                            unzipTo(zippedFile, unzipDir)
                        } catch (IOException e) {
                            throw UncheckedException.throwAsUncheckedException(e)
                        }
                    }
    
                    static void unzipTo(File inputZip, File unzipDir) throws IOException {
                        inputZip.withInputStream { stream ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/verification/serializer/DependencyVerificationsXmlReader.java

            } finally {
                try {
                    in.close();
                } catch (IOException e) {
                    throw UncheckedException.throwAsUncheckedException(e);
                }
            }
        }
    
        public static DependencyVerifier readFromXml(InputStream in) {
            DependencyVerifierBuilder builder = new DependencyVerifierBuilder();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 17 13:23:37 UTC 2023
    - 19.1K bytes
    - Viewed (0)
  4. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/junit/result/JUnitXmlResultWriter.java

                    writer.endElement();
                }
    
                writer.endElement();
            } catch (IOException e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    
        private void writeOutputs(SimpleXmlWriter writer, long classId, boolean allClassOutput, TestOutputEvent.Destination destination) throws IOException {
            writer.startCDATA();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 18:49:57 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/main/java/org/gradle/api/internal/tasks/testing/detection/ForkedTestClasspathFactory.java

                    classDetector.withoutDetectedModules(unfiltered.implementationModulepath)
                );
            } catch (IOException e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    
        public interface ClassDetector extends Closeable {
            boolean hasClass(String className);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/groovy/scripts/internal/DefaultScriptCompilationHandler.java

                        nameField.setAccessible(true);
                        nameField.set(sourceUnit, source.getDisplayName());
                    } catch (Exception failure) {
                        throw UncheckedException.throwAsUncheckedException(failure);
                    }
                }
            }
    
            SyntaxException syntaxError = e.getErrorCollector().getSyntaxError(0);
            int lineNumber = syntaxError == null ? -1 : syntaxError.getLine();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  7. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/client/DaemonClient.java

                    return BuildActionResult.cancelled(new BuildCancelledException("Daemon was stopped to handle build cancel request.", failure));
                }
                throw UncheckedException.throwAsUncheckedException(failure);
            } else if (result instanceof DaemonUnavailable) {
                throw new DaemonInitialConnectException("The daemon we connected to was unavailable: " + ((DaemonUnavailable) result).getReason());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:54:56 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/resolver/ExternalResourceResolver.java

            String formattedHashString = hash.toString();
            try {
                return formattedHashString.getBytes("US-ASCII");
            } catch (UnsupportedEncodingException e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    
        public List<String> getIvyPatterns() {
            return CollectionUtils.collect(ivyPatterns, ResourcePattern::getPattern);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 00:21:07 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/internal/model/StateTransitionController.java

                // TODO - remove the need for locking here
                synchronizer.withLock(() -> {
                    state = state.failed(ExecutionResult.failed(t));
                });
                throw UncheckedException.throwAsUncheckedException(t);
            }
        }
    
        /**
         * Runs the given action, verifying the current state is the expected state.
         * Fails if the current state is not the given state or a previous operation has failed.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 03 03:31:44 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/verification/writer/WriteDependencyVerificationFile.java

                writeEntriesSerially();
                serializeResult(signatureVerificationService, existingKeyring);
            } catch (IOException e) {
                throw UncheckedException.throwAsUncheckedException(e);
            } finally {
                signatureVerificationService.stop();
            }
        }
    
        public boolean ensureOutputDirCreated() {
            return verificationFile.getParentFile().mkdirs();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 30.3K bytes
    - Viewed (0)
Back to top