- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for classLoaderIsolation (0.21 sec)
-
platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorParallelIntegrationTest.groovy
'processIsolation' | 'processIsolation' | 'processIsolation' 'classLoaderIsolation' | 'classLoaderIsolation' | 'classLoaderIsolation' 'processIsolation' | 'classLoaderIsolation' | 'both processIsolation and classLoaderIsolation' 'noIsolation' | 'classLoaderIsolation' | 'both noIsolation and classLoaderIsolation' }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 24 06:54:47 UTC 2023 - 31.7K bytes - Viewed (0) -
platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorIntegrationTest.groovy
} } """ expect: succeeds "verifyNotIsolated" } def "user classes are isolated when using classLoaderIsolation"() { fixture.withWorkActionClassInBuildScript() buildFile << """ class MutableItem { static String value = "foo" }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 06 13:00:39 UTC 2024 - 31K bytes - Viewed (0) -
testing/performance/src/templates/workerApiProject/buildSrc/src/main/java/com/example/worker/WorkerPlugin.java
@Override public void apply(final Project project) { project.getPluginManager().apply("base"); project.getTasks().create("noIsolation", WorkerTask.class); project.getTasks().create("classloaderIsolation", WorkerTask.class, new Action<WorkerTask>() { @Override public void execute(WorkerTask workerTask) { workerTask.setIsolationMode(IsolationMode.CLASSLOADER); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 2K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/workerApi/md5ClassloaderIsolation/groovy/buildSrc/src/main/java/CreateMD5.java
@Inject abstract public WorkerExecutor getWorkerExecutor(); @TaskAction public void createHashes() { WorkQueue workQueue = getWorkerExecutor().classLoaderIsolation(workerSpec -> { workerSpec.getClasspath().from(getCodecClasspath()); // <2> }); for (File sourceFile : getSource().getFiles()) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1.3K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/workerApi/md5ClassloaderIsolation/kotlin/buildSrc/src/main/java/CreateMD5.java
@Inject abstract public WorkerExecutor getWorkerExecutor(); @TaskAction public void createHashes() { WorkQueue workQueue = getWorkerExecutor().classLoaderIsolation(workerSpec -> { workerSpec.getClasspath().from(getCodecClasspath()); // <2> }); for (File sourceFile : getSource().getFiles()) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1.3K bytes - Viewed (0) -
platforms/core-execution/workers/src/main/java/org/gradle/workers/WorkerExecutor.java
*/ WorkQueue noIsolation(); /** * Creates a {@link WorkQueue} to submit work for asynchronous execution with an isolated classloader. * * @since 5.6 */ WorkQueue classLoaderIsolation(); /** * Creates a {@link WorkQueue} to submit work for asynchronous execution in a daemon process. *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 12 02:21:10 UTC 2024 - 4K bytes - Viewed (0) -
platforms/core-execution/workers/src/main/java/org/gradle/workers/internal/DefaultWorkerExecutor.java
} @Override public WorkQueue noIsolation() { return noIsolation(Actions.doNothing()); } @Override public WorkQueue classLoaderIsolation() { return classLoaderIsolation(Actions.doNothing()); } @Override public WorkQueue processIsolation() { return processIsolation(Actions.doNothing()); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 08 15:17:07 UTC 2024 - 15.2K bytes - Viewed (0) -
platforms/documentation/docs/src/docs/userguide/authoring-builds/tasks/worker_api.adoc
For instance, it will share the same classloader that the task is loaded from. This is the fastest level of isolation. link:{javadocPath}/org/gradle/workers/WorkerExecutor.html#classLoaderIsolation-org.gradle.api.Action-[`WorkerExecutor.classLoaderIsolation()`]:: This states that the work should be run in a thread with an isolated classloader. +
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sun Apr 28 13:41:08 UTC 2024 - 17.7K bytes - Viewed (0) -
platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorCompositeBuildIntegrationTest.groovy
executer.expectDocumentedDeprecationWarning("The WorkerExecutor.submit() method has been deprecated. This is scheduled to be removed in Gradle 8.0. Please use the noIsolation(), classLoaderIsolation() or processIsolation() method instead. See https://docs.gradle.org/current/userguide/upgrading_version_5.html#method_workerexecutor_submit_is_deprecated for more details.") } settingsFile << """
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:36:27 UTC 2023 - 6K bytes - Viewed (0) -
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)