Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for WorkParameters (0.26 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/NativeServicesIntegrationTest.groovy

            nativeDir = new File(executer.gradleUserHomeDir, 'native')
            executer.withArguments(systemProperties.collect { it.toString() })
            buildFile << """
                import org.gradle.workers.WorkParameters
    
                tasks.register("doWork", WorkerTask)
    
                abstract class WorkerTask extends DefaultTask {
                    @Inject
                    abstract WorkerExecutor getWorkerExecutor()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 05:18:22 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/ProcessInTaskIntegrationTest.groovy

                import ${TaskAction.name}
                import ${WorkAction.name}
                import ${WorkParameters.name}
                import ${WorkQueue.name}
                import ${WorkerExecutor.name}
                ${snippets.imports}
    
                public abstract class SneakyAction implements WorkAction<WorkParameters.None> {
                    @Inject
                    protected abstract ExecOperations getExecOperations();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  3. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorIntegrationTest.groovy

                        workerExecutor.noIsolation().submit(SomeWork) { }
                        workerExecutor.await()
                    }
                }
    
                abstract class SomeWork implements WorkAction<WorkParameters.None> {
                    void execute() {
                        Thread.sleep(50)
                    }
                }
    
                allprojects {
                    task run(type: SubmitsAndWaits)
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 13:00:39 UTC 2024
    - 31K bytes
    - Viewed (0)
  4. platforms/core-execution/persistent-cache/src/integTest/groovy/org/gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy

                import org.gradle.internal.service.ServiceRegistryBuilder
                import org.gradle.internal.service.scopes.GradleUserHomeScopeServices
                import org.gradle.workers.WorkParameters
                import org.gradle.workers.WorkAction
                import org.gradle.internal.instrumentation.agent.AgentStatus
                import org.gradle.cache.scopes.GlobalScopedCacheBuilderFactory
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  5. testing/architecture-test/src/changes/archunit-store/injected-services-should-have-service-scope-applied.txt

    Class <org.gradle.vcs.SourceControl> is not annotated with @ServiceScope in (SourceControl.java:0)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 05 08:43:33 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r35/BuildProgressCrossVersionSpec.groovy

        }
    
        private ProgressEvents.Operation runBuildWithWorkerAction() {
            buildFile << """
                import org.gradle.workers.*
                abstract class MyWorkerAction implements WorkAction<WorkParameters.None>{
                    @Override public void execute() {
                        // Do nothing
                    }
                }
                task runInWorker {
                    doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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