Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Cacheable (0.33 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r35/CacheableTaskProgressEventsCrossVersionSpec.groovy

    import org.gradle.util.GradleVersion
    
    class CacheableTaskProgressEventsCrossVersionSpec extends ToolingApiSpecification {
        def setup() {
            buildFile << """
                apply plugin: 'base'
    
                task cacheable {
                    def outputFile = new File(buildDir, "output")
                    inputs.file("input")
                    outputs.file(outputFile)
                    outputs.cacheIf { true }
    
                    doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r33/CacheableTaskOutcomeCrossVersionSpec.groovy

    class CacheableTaskOutcomeCrossVersionSpec extends ToolingApiSpecification {
        def setup() {
            buildFile << """
                apply plugin: 'base'
    
                task cacheable {
                    def outputFile = new File(buildDir, "output")
                    inputs.file("input")
                    outputs.file(outputFile)
                    outputs.cacheIf { true }
    
                    doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. platforms/core-configuration/dependency-management-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/dm/transform/IsolateTransformParametersCodec.kt

            val parameterObject: TransformParameters? = read()?.uncheckedCast()
            val implementationClass = readClass()
            val cacheable = readBoolean()
    
            return DefaultTransform.IsolateTransformParameters(
                parameterObject,
                implementationClass,
                cacheable,
                RootScriptDomainObjectContext.INSTANCE,
                parameterScheme.inspectionScheme.propertyWalker,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 18:56:44 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/problems/KnownProblemIds.groovy

            'validation:type-validation:invalid-use-of-type-annotation' : 'Incorrect use of type annotation',
            'validation:type-validation:not-cacheable-without-reason' : 'Not cacheable without reason',
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:07:53 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/transform/MutableTransformExecution.java

            visitInputArtifact(visitor);
        }
    
        private String normalizeAbsolutePath(String path) {
            // We try to normalize the absolute path, so the workspace id is stable between machines for cacheable transforms.
            if (path.startsWith(rootProjectLocation)) {
                return path.substring(rootProjectLocation.length());
            }
            return path;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 16:14:33 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. platforms/core-execution/build-cache-example-client/src/main/java/org/gradle/caching/example/ExampleBuildCacheClient.java

                .ifPresent(__ -> {
                    throw new RuntimeException("Should have been a miss");
                });
    
            // Produce some example output (simulate executing cacheable work in a temporary sandbox)
            Path sandboxOutputDirectory = Files.createTempDirectory("sandbox-output");
            Path sandboxOutputTxt = sandboxOutputDirectory.resolve("output.txt");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 05 19:35:22 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/ValidateStep.java

                }
    
                @Override
                public void visitImplementation(ImplementationSnapshot implementation) {
                }
            });
            // It doesn't matter whether we use cacheable true or false, since none of the warnings depends on the cacheability of the task.
            Class<?> workType = workClass.get();
            TypeValidationContext workValidationContext = validationContext.forType(workType, true);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  8. internal/config/cache/cache.go

    }
    
    var configLock sync.RWMutex
    
    // Enabled - indicates if cache is enabled or not
    func (c *Config) Enabled() bool {
    	return c.Enable && c.Endpoint != ""
    }
    
    // MatchesSize verifies if input 'size' falls under cacheable threshold
    func (c Config) MatchesSize(size int64) bool {
    	configLock.RLock()
    	defer configLock.RUnlock()
    
    	return c.Enable && c.BlockSize > 0 && size <= c.BlockSize
    }
    
    // Update updates new cache frequency
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/optimizing-performance/build-cache/build_cache_performance.adoc

    1. Clean the cache directory to avoid any hits from previous builds (`rm -rf $GRADLE_USER_HOME/caches/build-cache-*`)
    2. Run the build (e.g. `./gradlew --build-cache clean assemble`), so that all the results from cacheable tasks get stored in the cache.
    3. Run the build again (e.g. `./gradlew --build-cache clean assemble`); depending on your build, you should see many of the tasks being retrieved from the cache.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 09:28:20 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top