Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for cleanupMethod (0.52 sec)

  1. subprojects/core/src/testFixtures/groovy/org/gradle/cache/internal/GradleUserHomeCleanupFixture.groovy

            setCleanupInterval("DEFAULT")
        }
    
        void disableCacheCleanup(CleanupMethod method) {
            switch (method) {
                case CleanupMethod.PROPERTY:
                    disableCacheCleanupViaProperty()
                    break
                case CleanupMethod.DSL:
                    disableCacheCleanupViaDsl()
                    break
                case CleanupMethod.BOTH:
                    disableCacheCleanupViaProperty()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 20:02:29 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/caching/ArtifactCacheUnusedEntryCleanupIntegrationTest.groovy

        def "does not clean up resources and files when cache cleanup is disabled via #cleanupMethod"(CleanupMethod cleanupMethod) {
            given:
            buildscriptWithDependency(snapshotModule)
    
            when:
            executer.requireIsolatedDaemons() // needs to stop daemon
    
            and:
            disableCacheCleanup(cleanupMethod)
            cleanupMethod.maybeExpectDeprecationWarning(executer)
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 22 12:06:23 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/caching/ArtifactCacheUnusedVersionCleanupIntegrationTest.groovy

            oldMetadataDir.assertDoesNotExist()
            currentModulesDir.assertExists()
            currentModulesMetadataDir.assertExists()
        }
    
        def "does not cleanup unused versions of caches when cleanup disabled"(CleanupMethod method) {
            given:
            gcFile.lastModified = daysAgo(2)
            disableCacheCleanup(method)
    
            when:
            method.maybeExpectDeprecationWarning(executer)
            succeeds("help")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 22 12:06:23 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. platforms/core-execution/build-cache-local/src/integTest/groovy/org/gradle/caching/local/internal/AbstractBuildCacheCleanupIntegrationTest.groovy

            "explicitly enabled"        | true
        }
    
        def "cleans up entries even if gradle user home cache cleanup is disabled via #cleanupMethod"() {
            def lastCleanupCheck = initializeHome()
    
            disableCacheCleanup(cleanupMethod)
    
            when:
            def newTrashFile = temporaryFolder.file("0" * hashStringLength).createFile()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 16:53:17 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/cache/internal/GradleUserHomeCleanupServiceIntegrationTest.groovy

        }
    
        def "does not clean up unused version-specific cache directories and corresponding distributions when clean is disabled using #cleanupMethod"() {
            given:
            requireOwnGradleUserHomeDir() // because we delete caches and distributions
            disableCacheCleanup(cleanupMethod)
    
            and:
            def oldButRecentlyUsedGradleDist = versionedDistDirs(DistType.RELEASED.version("1.4.5"), USED_TODAY, "my-dist-1")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 10 15:48:56 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformCacheUnusedVersionCleanupIntegrationTest.groovy

            transforms4Dir.assertDoesNotExist()
            currentTransformsDir.assertExists()
            currentModulesDir.assertExists()
        }
    
        def "does not cleans up old unused versions of transforms-X when cleanup disabled"(CleanupMethod method) {
            given:
            modulesGcFile.lastModified = daysAgo(2)
            disableCacheCleanup(method)
    
            when:
            method.maybeExpectDeprecationWarning(executer)
            succeeds("help")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 22 12:09:31 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformCachingIntegrationTest.groovy

            and:
            cleanupMethod.maybeExpectDeprecationWarning(executer)
            // start as new process so journal is not restored from in-memory cache
            executer.withTasks("help").start().waitForFinish()
    
            then:
            outputDir1.assertExists()
            outputDir2.assertExists()
    
            where:
            cleanupMethod << CleanupMethod.values()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 11:52:44 UTC 2024
    - 97.8K bytes
    - Viewed (0)
Back to top