Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for BuildCacheException (0.28 sec)

  1. platforms/core-execution/build-cache-spi/src/main/java/org/gradle/caching/BuildCacheException.java

     */
    
    package org.gradle.caching;
    
    /**
     * <p><code>BuildCacheException</code> is the base class of all exceptions thrown by a {@link BuildCacheService}.</p>
     *
     * @since 3.3
     */
    public class BuildCacheException extends RuntimeException {
        public BuildCacheException() {
            super();
        }
    
        public BuildCacheException(String message) {
            super(message);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 16:09:36 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  2. subprojects/core-api/src/main/java/org/gradle/caching/MapBasedBuildCacheService.java

        public boolean load(BuildCacheKey key, BuildCacheEntryReader reader) throws BuildCacheException {
            final byte[] bytes = delegate.get(key.getHashCode());
            if (bytes == null) {
                return false;
            }
            try {
                reader.readFrom(new ByteArrayInputStream(bytes));
            } catch (IOException e) {
                throw new BuildCacheException("loading " + key, e);
            }
            return true;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 08 17:15:17 UTC 2019
    - 2.1K bytes
    - Viewed (0)
  3. platforms/core-execution/build-cache/src/main/java/org/gradle/caching/internal/StatefulNextGenBuildCacheService.java

     */
    
    package org.gradle.caching.internal;
    
    import org.apache.commons.io.output.UnsynchronizedByteArrayOutputStream;
    import org.gradle.caching.BuildCacheEntryWriter;
    import org.gradle.caching.BuildCacheException;
    import org.gradle.caching.BuildCacheKey;
    import org.gradle.caching.BuildCacheService;
    
    import java.io.Closeable;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    
    /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 20 10:14:55 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. platforms/core-execution/build-cache-http/src/main/java/org/gradle/caching/http/internal/HttpBuildCacheService.java

            } catch (IOException e) {
                throw wrap(e);
            }
        }
    
        private static BuildCacheException wrap(Throwable e) {
            if (e instanceof Error) {
                throw (Error) e;
            }
    
            throw new BuildCacheException(e.getMessage(), e);
        }
    
        private boolean isHttpSuccess(int statusCode) {
            return statusCode >= 200 && statusCode < 300;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 04 14:13:12 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. platforms/core-execution/build-cache-spi/src/main/java/org/gradle/caching/BuildCacheService.java

     *
     * <p>
     *     Build cache implementations should report a non-fatal failure as a {@link BuildCacheException}.
     *     Non-fatal failures could include failing to retrieve a cache entry or unsuccessfully completing an upload a new cache entry.
     *     Gradle will not fail the build when catching a {@code BuildCacheException}, but it may disable caching for the build if too
     *     many failures occur.
     * </p>
     * <p>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 12:59:40 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. platforms/core-execution/build-cache-local/src/main/java/org/gradle/caching/local/internal/DirectoryBuildCacheService.java

    import org.gradle.api.NonNullApi;
    import org.gradle.cache.PersistentCache;
    import org.gradle.caching.BuildCacheEntryReader;
    import org.gradle.caching.BuildCacheEntryWriter;
    import org.gradle.caching.BuildCacheException;
    import org.gradle.caching.BuildCacheKey;
    import org.gradle.caching.BuildCacheService;
    import org.gradle.caching.internal.BuildCacheKeyInternal;
    import org.gradle.internal.file.FileAccessTracker;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 07 14:32:44 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedTaskExecutionErrorHandlingIntegrationTest.groovy

                    @Override
                    boolean load(BuildCacheKey key, BuildCacheEntryReader reader) throws BuildCacheException {
                        println "> Attempting load for \$key"
                        if (shouldFail == "load") {
                            shouldFail = null
                            throw new BuildCacheException("Unable to read " + key)
                        } else {
                            return false
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:22 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/caching/internal/controller/DefaultBuildCacheControllerFactoryTest.groovy

            @Override
            boolean load(BuildCacheKey key, BuildCacheEntryReader reader) throws BuildCacheException {
                return false
            }
    
            @Override
            void store(BuildCacheKey key, BuildCacheEntryWriter writer) throws BuildCacheException {
    
            }
    
            @Override
            void close() throws IOException {
    
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 22:46:34 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/caching/configuration/internal/BuildCacheErrorIntegrationTest.groovy

                    
                    @Override
                    boolean load(BuildCacheKey key, BuildCacheEntryReader reader) throws BuildCacheException {
                        return false
                    }
        
                    @Override
                    void store(BuildCacheKey key, BuildCacheEntryWriter writer) throws BuildCacheException {
                    }
        
                    @Override
                    void close() throws IOException {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 12 13:13:02 UTC 2019
    - 3.8K bytes
    - Viewed (0)
  10. platforms/core-execution/build-cache-spi/src/integTest/groovy/org/gradle/caching/BuildCacheServiceExtensibilityIntegrationTest.groovy

                    boolean load(BuildCacheKey key, BuildCacheEntryReader reader) throws BuildCacheException {
                        println "Loading \$key"
                        $additionalLogic
                        return false
                    }
    
                    @Override
                    void store(BuildCacheKey key, BuildCacheEntryWriter writer) throws BuildCacheException {
                        println "Storing \$key"
                        $additionalLogic
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 16:09:36 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top