Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for withMutableStateOfAllProjects (0.3 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/project/DefaultProjectStateRegistryTest.groovy

            def projects = registry.projectsFor(build.buildIdentifier)
    
            expect:
            !state.hasMutableState()
    
            and:
            projects.withMutableStateOfAllProjects {
                assert state.hasMutableState()
                projects.withMutableStateOfAllProjects {
                    assert state.hasMutableState()
                }
                assert state.hasMutableState()
            }
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/internal/build/BuildProjectRegistry.java

         *
         * <p>Any attempt to lock a project by some other thread will block while the given action is running. This includes calls to {@link ProjectState#applyToMutableState(Consumer)}.
         */
        void withMutableStateOfAllProjects(Runnable runnable);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 17 02:52:57 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/initialization/DefaultTaskExecutionPreparer.java

        }
    
        @Override
        public void scheduleRequestedTasks(GradleInternal gradle, @Nullable EntryTaskSelector selector, ExecutionPlan plan) {
            gradle.getOwner().getProjects().withMutableStateOfAllProjects(() -> {
                buildTaskScheduler.scheduleRequestedTasks(gradle, selector, plan);
    
                if (buildModelParameters.isConfigureOnDemand() && gradle.isRootBuild()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/api/internal/project/DefaultProjectStateRegistry.java

                return projects;
            }
    
            @Override
            public void withMutableStateOfAllProjects(Runnable runnable) {
                withMutableStateOfAllProjects(Factories.toFactory(runnable));
            }
    
            @Override
            public <T> T withMutableStateOfAllProjects(Factory<T> factory) {
                ResourceLock allProjectsLock = workerLeaseService.getAllProjectsLock(owner.getIdentityPath());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 21K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/internal/build/DefaultBuildWorkGraphController.java

                    }
                }
                if (tasks.isEmpty()) {
                    return false;
                }
                controller.getGradle().getOwner().getProjects().withMutableStateOfAllProjects(() -> {
                    createPlan();
                    controller.prepareToScheduleTasks();
                    controller.populateWorkGraph(plan, workGraph -> workGraph.addEntryTasks(tasks));
                });
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 31 05:15:28 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/execution/taskgraph/DefaultTaskExecutionGraph.java

        }
    
        private void fireWhenReady() {
            // We know that we're running single-threaded here, so we can use coarse grained project locks
            gradleInternal.getOwner().getProjects().withMutableStateOfAllProjects(
                () -> buildOperationRunner.run(
                    new NotifyTaskGraphWhenReady(DefaultTaskExecutionGraph.this, graphListeners.getSource(), gradleInternal)
                )
            );
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/ConfigurationCacheState.kt

                write(state.identityPath)
            }
            // Encode the build state using the contextualized IO service for the nested build
            state.projects.withMutableStateOfAllProjects {
                gradle.serviceOf<ConfigurationCacheIO>().writeIncludedBuildStateTo(
                    stateFileFor(state.buildDefinition),
                    buildTreeState
                )
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/DefaultConfigurationCache.kt

            configurationTimeBarrier.cross()
        }
    
        private
        fun writeConfigurationCacheState(stateFile: ConfigurationCacheStateFile) =
            host.currentBuild.gradle.owner.projects.withMutableStateOfAllProjects {
                cacheIO.writeRootBuildStateTo(stateFile)
            }
    
        private
        fun writeConfigurationCacheFingerprint(layout: ConfigurationCacheRepository.Layout, reusedProjects: Set<Path>) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/execution/taskgraph/DefaultTaskExecutionGraphSpec.groovy

                } else if (node instanceof SelfExecutingNode) {
                    return true
                } else {
                    return false
                }
            }
            _ * projectStateRegistry.withMutableStateOfAllProjects(_) >> { Runnable r -> r.run() }
        }
    
        def cleanup() {
            parentWorkerLease.leaseFinish()
            workerLeases.stop()
        }
    
        def "collects task failures"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 20.6K bytes
    - Viewed (0)
Back to top