Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for WorkParameters (0.44 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/TaskProgressCrossVersionSpec.groovy

                        it.params = [ name ]
                    }
                }
            }
            """
        }
    
        private defineGradleWorkAction() {
            """
            interface WorkActionParams extends WorkParameters {
                Property<String> getName()
            }
            abstract class TestWorkAction implements WorkAction<WorkActionParams> {
                public void execute() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/ParallelTaskExecutionIntegrationTest.groovy

                    void ping() {
                        new URL("http://localhost:${blockingServer.port}/" + path).text
                    }
                }
    
                interface TestParallelWorkActionConfig extends WorkParameters {
                    Property<String> getPath()
                }
    
                abstract class TestParallelWorkAction implements WorkAction<TestParallelWorkActionConfig> {
                    void execute() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 14:00:51 UTC 2024
    - 21K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/bundling/ConcurrentArchiveIntegrationTest.groovy

                task extract(type: Extract) {
                    archiveFile = file('test.tar')
                    destinationDir = file('build/extract')
                }
                interface ExtracterParameters extends WorkParameters {
                    RegularFileProperty getArchiveFile()
                    DirectoryProperty getDestinationDir()
                    Property<Integer> getIndex()
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 17:32:21 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/docs/userguide/authoring-builds/tasks/worker_api.adoc

    This is where the Worker API can help.
    
    To use the Worker API, you need to define an interface that represents the parameters of each unit of work and extends `org.gradle.workers.WorkParameters`.
    
    For the generation of MD5 hash files, the unit of work will require two parameters:
    
    1. the file to be hashed and,
    2. the file to write the hash to.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Apr 28 13:41:08 UTC 2024
    - 17.7K bytes
    - Viewed (0)
Back to top