Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for reverseFiles (0.16 sec)

  1. platforms/documentation/docs/src/snippets/workerApi/waitForCompletion/groovy/build.gradle

            }
        }
    }
    
    abstract class ReverseFiles extends SourceTask {
        private final ProjectLayout projectLayout
        private final WorkerExecutor workerExecutor
    
        @OutputDirectory
        abstract DirectoryProperty getOutputDir()
    
        // The WorkerExecutor will be injected by Gradle at runtime
        @Inject
        ReverseFiles(ProjectLayout projectLayout, WorkerExecutor workerExecutor) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/workerApi/noIsolation/kotlin/build.gradle.kts

            source.forEach { file ->
                workQueue.submit(ReverseFile::class) {
                    fileToReverse = file
                    destinationDir = outputDir
                }
            }
        }
    }
    // end::task-implementation[]
    
    tasks.register<ReverseFiles>("reverseFiles") {
        outputDir = layout.buildDirectory.dir("reversed")
        source("sources")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/workerApi/noIsolation/groovy/build.gradle

            }
        }
    }
    // end::unit-of-work[]
    
    // tag::task-implementation[]
    abstract class ReverseFiles extends SourceTask {
        private final WorkerExecutor workerExecutor
    
        @OutputDirectory
        abstract DirectoryProperty getOutputDir()
    
        // The WorkerExecutor will be injected by Gradle at runtime
        @Inject
        ReverseFiles(WorkerExecutor workerExecutor) {
            this.workerExecutor = workerExecutor
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/workerApi/workerDaemon/groovy/build.gradle

            source.each { file ->
                workQueue.submit(ReverseFile.class) { ReverseParameters parameters ->
                    parameters.fileToReverse = file
                    parameters.destinationDir = outputDir
                }
            }
            // end::worker-daemon[]
        }
    }
    
    task reverseFiles(type: ReverseFiles) {
        outputDir = file("${buildDir}/reversed")
        source("sources")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/workerApi/workerDaemon/kotlin/build.gradle.kts

            source.forEach { file ->
                workQueue.submit(ReverseFile::class) {
                    fileToReverse = file
                    destinationDir = outputDir
                }
            }
            // end::worker-daemon[]
        }
    }
    
    tasks.register<ReverseFiles>("reverseFiles") {
        outputDir = layout.buildDirectory.dir("reversed")
        source("sources")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/workerApi/waitForCompletion/kotlin/build.gradle.kts

        }
    }
    
    // The WorkerExecutor will be injected by Gradle at runtime
    abstract class ReverseFiles @Inject constructor(
        private val projectLayout: ProjectLayout,
        private val workerExecutor: WorkerExecutor
    ) : SourceTask() {
    
        @get:OutputDirectory
        abstract val outputDir: DirectoryProperty
    
        @TaskAction
        fun reverseFiles() {
            // tag::wait-for-completion[]
            // Create a WorkQueue to submit work items
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/workerApi/noIsolation/tests/unitOfWork.sample.conf

    executable: gradle
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 38 bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/workerApi/waitForCompletion/tests/waitForCompletion.sample.conf

    executable: gradle
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 38 bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/workerApi/workerDaemon/tests/workerDaemon.sample.conf

    executable: gradle
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 38 bytes
    - Viewed (0)
  10. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/AbstractWorkerExecutorSampleIntegrationTest.groovy

            sampleProvider.dir.file(dsl)
        }
    
        def "creates expected content (#dsl)"() {
            when:
            executer.inDirectory(workerExecutorSample(dsl))
            succeeds "reverseFiles"
    
            then:
            assertReversedFilesArePresentAndCorrect(dsl)
    
            and:
            assertSampleSpecificOutcome(dsl)
    
            where:
            dsl << getDsls()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:36:27 UTC 2023
    - 2.1K bytes
    - Viewed (0)
Back to top