Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getUserHomeCacheDir (0.27 sec)

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

    import org.gradle.util.GradleVersion
    
    import static org.gradle.cache.internal.scopes.DefaultCacheScopeMapping.GLOBAL_CACHE_DIR_NAME
    
    @SelfType(AbstractIntegrationSpec)
    trait CachingIntegrationFixture {
        TestFile getUserHomeCacheDir() {
            return executer.gradleUserHomeDir.file(GLOBAL_CACHE_DIR_NAME)
        }
    
        TestFile getGradleVersionedCacheDir() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/CacheResolveIntegrationTest.groovy

        void "cache handles manual deletion of cached artifacts"() {
            given:
            def module = ivyHttpRepo.module('group', 'projectA', '1.2').publish()
    
            def cacheDir = getUserHomeCacheDir().toURI()
    
            and:
            buildFile << """
    repositories {
        ivy { url "${ivyHttpRepo.uri}" }
    }
    configurations { compile }
    dependencies { compile 'group:projectA:1.2' }
    task listJars {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 22 01:27:55 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/caching/ArtifactCacheUnusedEntryCleanupIntegrationTest.groovy

                    }
                }
            """
        }
    
        TestFile getGcFile() {
            return cacheDir.file("gc.properties")
        }
    
        TestFile getCacheDir() {
            return getUserHomeCacheDir().file(CacheLayout.MODULES.getKey())
        }
    
        void forceCleanup(File file) {
            file.lastModified = System.currentTimeMillis() - DAYS.toMillis(DEFAULT_MAX_AGE_IN_DAYS_FOR_DOWNLOADED_CACHE_ENTRIES + 1)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 22 12:06:23 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/suppliers/DynamicRevisionRemoteResolveWithMetadataSupplierIntegrationTest.groovy

            when:
            run '--stop'
            // bust the artifact cache because we don't want to fall into the smart behavior
            // of reusing metadata from cache for a different repository
            getUserHomeCacheDir().file(CacheLayout.MODULES.getKey()).deleteDir()
            resetExpectations()
            // Changing the host makes Gradle consider that the 2 repositories are distinct
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 11:46:17 UTC 2024
    - 49K bytes
    - Viewed (0)
Back to top