Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 82 for CacheableTask (0.39 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedRelocationIntegrationTest.groovy

            skipped ":compileJava"
            // Custom tasks are also loaded from cache
            skipped ":customTask"
        }
    
        static String externalTaskDef(String suffix = "") {
            """
                @CacheableTask
                class CustomTask extends DefaultTask {
                    @InputFile
                    @PathSensitive(PathSensitivity.NONE)
                    File inputFile
    
                    @OutputFile File outputFile
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedTaskIntegrationTest.groovy

            then:
            outputContains "Loaded cache entry for task ':cacheable' with cache key"
        }
    
        def defineCacheableTask() {
            """
                @CacheableTask
                class CustomTask extends DefaultTask {
                    @OutputDirectory File outputDir = new File(project.buildDir, 'output')
                    @TaskAction
                    void generate() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 20 17:51:57 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/AbstractPathSensitivityIntegrationSpec.groovy

            file("buildSrc/src/main/groovy/TestTask.groovy") << """
                import org.gradle.api.*
                import org.gradle.api.file.*
                import org.gradle.api.tasks.*
    
                @CacheableTask
                class PathSensitiveTask extends DefaultTask {
                    @InputFiles
                    @PathSensitive(PathSensitivity.${pathSensitivity.name()})
                    FileCollection sources
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 6.1K bytes
    - Viewed (0)
  4. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/ChangesByGradleFileWatchingIntegrationTest.groovy

            executedAndNotSkipped(":jar")
        }
    
        def "detects when local state is removed"() {
            buildFile << """
                plugins {
                    id 'base'
                }
    
                @CacheableTask
                abstract class WithLocalStateDirectory extends DefaultTask {
                    @LocalState
                    abstract DirectoryProperty getLocalStateDirectory()
                    @OutputFile
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  5. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorParametersKotlinIntegrationTest.groovy

                    fun arrayToString(array: $kotlinArrayType) =
                        array.javaClass.componentType.toString() + "ArrayOf" + array.joinToString(",", "(", ")")
                }
    
                @CacheableTask
                abstract class ParameterTask : DefaultTask() {
    
                    @get:Inject
                    abstract val workerExecutor: WorkerExecutor
    
                    @get:Input
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 11 20:22:02 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/ChangesBetweenBuildsFileSystemWatchingIntegrationTest.groovy

            def buildCache = new TestBuildCache(temporaryFolder.file("cache-dir").deleteDir().createDir())
            def buildFileContents = """
                apply plugin: "base"
    
                @CacheableTask
                abstract class CustomTask extends DefaultTask {
                    @InputFile
                    @PathSensitive(PathSensitivity.NONE)
                    abstract RegularFileProperty getSource()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/caching/configuration/internal/BuildCacheConfigurationIntegrationTest.groovy

            and:
            localBuildCache.empty
        }
    
        private static String customTaskCode() {
            """
                @CacheableTask
                class CustomTask extends DefaultTask {
                    @OutputFile
                    File outputFile = new File(temporaryDir, "output.txt")
    
                    @TaskAction
                    void generate() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 19 20:09:35 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  8. platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheServiceErrorHandlingIntegrationTest.groovy

    class HttpBuildCacheServiceErrorHandlingIntegrationTest extends HttpBuildCacheFixture {
        def setup() {
            buildFile << """
                import org.gradle.api.*
                apply plugin: 'base'
    
                @CacheableTask
                class CustomTask extends DefaultTask {
                    @Input
                    Long fileSize = 1024
    
                    @OutputFile
                    File outputFile
    
                    @TaskAction
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/build.gradle.kts

    sourceSets.main {
        groovy.srcDir(generateLanguageAnnotations.flatMap { it.destDir })
        output.dir(prepareVersionsInfo.map { it.destFile.get().asFile.parentFile })
        output.dir(copyTestedVersionsInfo)
    }
    
    @CacheableTask
    abstract class PrepareVersionsInfo : DefaultTask() {
    
        @get:OutputFile
        abstract val destFile: RegularFileProperty
    
        @get:Input
        abstract val mostRecent: Property<String>
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:14 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/caching/configuration/internal/BuildCacheCompositeConfigurationIntegrationTest.groovy

            output.contains("> Task :included:second:test FROM-CACHE")
        }
    
        private static String customTaskCode(String val = "foo") {
            """
                @CacheableTask
                class CustomTask extends DefaultTask {
                    @Input
                    String val
    
                    @OutputFile
                    File outputFile = new File(temporaryDir, "output.txt")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top