Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 17 of 17 for classLoaderIsolation (0.38 sec)

  1. platforms/core-execution/workers/src/test/groovy/org/gradle/workers/internal/DefaultWorkerExecutorParallelTest.groovy

                instant.allStarted
            }
    
            then:
            6 * workerThreadRegistry.workerThread >> true
            6 * executionQueue.submit(_)
    
            where:
            isolationMode << ["noIsolation", "classLoaderIsolation", "processIsolation"]
        }
    
        def "can wait on results to complete"() {
            when:
            workerExecutor.await()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 14:22:31 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. platforms/software/build-init/src/main/java/org/gradle/buildinit/plugins/internal/maven/PomProjectInitDescriptor.java

            IncubationLogger.incubatingFeatureUsed("Maven to Gradle conversion");
            try {
                Settings settings = settingsProvider.buildSettings();
                executor.classLoaderIsolation(config -> config.getClasspath().from(mavenClasspath))
                        .submit(Maven2GradleWorkAction.class, params -> {
                            params.getWorkingDir().set(initSettings.getTarget());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 23 19:14:24 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorNestingIntegrationTest.groovy

         */
        def "workers with classpath isolation cannot spawn more work with #nestedIsolationMode"() {
            buildFile << """
                ${getWorkActionWithNesting("classLoaderIsolation", nestedIsolationMode)}
                task runInWorker(type: NestingWorkerTask)
            """.stripIndent()
    
            expect:
            fails("runInWorker")
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:36:27 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  4. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorErrorHandlingIntegrationTest.groovy

            and:
            executedAndNotSkipped(":runAgainInWorker")
            assertWorkerExecuted("runAgainInWorker")
    
            where:
            isolationMode << ["'classLoaderIsolation'", "'processIsolation'"]
        }
    
        def "produces a sensible error even if the action failure cannot be fully serialized in #isolationMode"() {
            fixture.withWorkActionClassInBuildSrc()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:36:27 UTC 2023
    - 14.1K bytes
    - Viewed (0)
  5. platforms/core-execution/workers/src/test/groovy/org/gradle/workers/internal/DefaultWorkerExecutorTest.groovy

                return new DefaultWorkResult(true, null)
            }
        }
    
        def "executor executes a given runnable in-process"() {
            when:
            workerExecutor.classLoaderIsolation().submit(TestExecutable.class, Actions.doNothing())
    
            then:
            1 * workerThreadRegistry.workerThread >> true
            1 * executionQueue.submit(_) >> { args -> task = args[0] }
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 11 15:27:52 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/docs/userguide/releases/upgrading/upgrading_version_5.adoc

    This will become an error in Gradle 6.0.
    
    ==== Method `WorkerExecutor.submit()` is deprecated
    
    The `WorkerExecutor.submit()` method is now deprecated.
    The new `noIsolation()`, `classLoaderIsolation()` and `processIsolation()` methods should now be used to submit work.
    See <<worker_api.adoc#tasks_parallel_worker,the section on the Worker API>> for more information on using these methods.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 03:01:48 UTC 2024
    - 47.5K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/docs/userguide/releases/upgrading/upgrading_version_7.adoc

    ==== WorkerExecutor API Cleanup
    
    The deprecated `submit(Class, Action)` method of the `WorkerExecutor` interface has been removed.
    Instead, obtain a `WorkQueue` via the `noIsolation()`, `classLoaderIsolation()`, and `processIsolation()`, methods and use the `submit(Class, Action)` method on the `WorkQueue` instead.
    
    ==== DependencySubstitution API Cleanup
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 15:00:23 UTC 2024
    - 87.7K bytes
    - Viewed (0)
Back to top