Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for deleteCacheEntry (0.28 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/TestBuildCache.groovy

        }
    
        List<TestFile> listCacheFiles() {
            cacheDir.listFiles().findAll { it.name ==~ /\p{XDigit}{${Hashing.defaultFunction().hexDigits}}/ }.sort()
        }
    
        void deleteCacheEntry(String cacheKey) {
            def entry = getTestFileCacheEntry(cacheKey)
            if (entry.file.exists()) {
                entry.file.deleteDir()
            }
        }
    
        boolean hasCacheEntry(String cacheKey) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CacheTaskArchiveErrorIntegrationTest.groovy

            remoteCache.hasCacheEntry(cacheKey)
    
            when:
            def cacheEntry = remoteCache.getCacheEntry(cacheKey)
            cacheEntry.text = "corrupt"
            localCache.deleteCacheEntry(cacheKey)
    
            then:
            fails("clean", "customTask")
            failureHasCause(~/Failed to load cache entry $CACHE_KEY_PATTERN for task ':customTask': Could not load from remote cache: Not in GZIP format/)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  3. platforms/core-execution/build-cache/src/integTest/groovy/org/gradle/caching/internal/BuildCacheBuildOperationsIntegrationTest.groovy

            def artifactFileCopy = file("artifact")
            // move it out of the local for us to use
            buildCache.getCacheEntry(initialPackOp.details.cacheKey.toString()).copyBytesTo(artifactFileCopy)
            buildCache.deleteCacheEntry(initialPackOp.details.cacheKey.toString())
            assert !buildCache.hasCacheEntry(initialPackOp.details.cacheKey.toString())
    
            when:
            settingsFile.text = ""
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:51:14 UTC 2024
    - 14.9K bytes
    - Viewed (0)
Back to top