Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/parser/PomReader.java

            try {
                bytes = IOUtils.toByteArray(org.apache.ivy.plugins.parser.m2.PomReader.class.getResourceAsStream("m2-entities.ent"));
            } catch (IOException e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
            M2_ENTITIES_RESOURCE = bytes;
    
            // Set the context classloader the bootstrap classloader, to work around the way that JAXP locates implementation classes
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 15:53:23 UTC 2024
    - 30K bytes
    - Viewed (0)
  2. platforms/core-runtime/functional/src/main/java/org/gradle/internal/Try.java

            public boolean isSuccessful() {
                return false;
            }
    
            @Override
            public T get() {
                // TODO Merge back with org.gradle.internal.UncheckedException.throwAsUncheckedException()
                //      once it's extracted from :base-services
                if (failure instanceof InterruptedException) {
                    Thread.currentThread().interrupt();
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:10:49 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. platforms/jvm/testing-junit-platform/src/main/java/org/gradle/api/internal/tasks/testing/junitplatform/JUnitPlatformTestClassProcessor.java

        private Class<?> loadClass(String className) {
            try {
                return Class.forName(className, false, junitClassLoader);
            } catch (ClassNotFoundException e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    
        private LauncherDiscoveryRequest createLauncherDiscoveryRequest(List<Class<?>> testClasses) {
            List<DiscoverySelector> classSelectors = testClasses.stream()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  4. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/inet/SocketConnection.java

                socket.configureBlocking(false);
                outstr = new SocketOutputStream(socket);
                instr = new SocketInputStream(socket);
            } catch (IOException e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
            InetSocketAddress localSocketAddress = (InetSocketAddress) socket.socket().getLocalSocketAddress();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  5. platforms/software/resources-http/src/main/java/org/gradle/internal/resource/transport/http/HttpClientHelper.java

                return null;
            }
            try {
                return new URIBuilder(uri).setUserInfo(null).build();
            } catch (URISyntaxException e) {
                throw UncheckedException.throwAsUncheckedException(e, true);
            }
        }
    
        private static class FailureFromRedirectLocation extends IOException {
            private final URI lastRedirectLocation;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 13K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/AbstractDirectorySensitivityIntegrationSpec.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
    - 18.4K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top