- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for applyToMutableState (0.52 sec)
-
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) -
subprojects/core/src/test/groovy/org/gradle/configuration/project/BuildScriptProcessorTest.groovy
project.getBuildscript() >> scriptHandler project.getClassLoaderScope() >> targetScope project.getBaseClassLoaderScope() >> baseScope project.getOwner() >> projectState projectState.applyToMutableState(_) >> { Consumer consumer -> consumer.accept(project) } } def configuresProjectUsingBuildScript() { when: buildScriptProcessor.execute(project) then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 06 01:39:02 UTC 2021 - 2.2K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/configuration/project/BuildScriptProcessor.java
try { final ScriptPlugin configurer = configurerFactory.create(scriptSource, project.getBuildscript(), project.getClassLoaderScope(), project.getBaseClassLoaderScope(), true); project.getOwner().applyToMutableState(configurer::apply); } finally { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Timing: Running the build script took {}", clock.getElapsed()); } } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 19 20:09:56 UTC 2022 - 2.1K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/initialization/RootScriptDomainObjectContext.java
} @Override public <S> S forceAccessToMutableState(Function<? super Object, ? extends S> factory) { return factory.apply(MODEL); } @Override public void applyToMutableState(Consumer<? super Object> action) { action.accept(MODEL); } @Override public Path getBuildPath() { return Path.ROOT; } @Override public boolean isScript() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sun Oct 23 18:38:36 UTC 2022 - 3.8K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/model/ModelContainer.java
* However, it is currently easy for state to leak from one project to another so this is not a strong guarantee. */ void applyToMutableState(Consumer<? super T> action); /** * Returns whether or not the current thread has access to the mutable model. */ boolean hasMutableState(); /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 18 08:26:24 UTC 2024 - 2.3K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/projectmodule/ProjectDependencyResolverTest.groovy
def setup() { def projectState = Stub(ProjectState) _ * projectRegistry.stateFor(_) >> projectState _ * projectState.applyToMutableState(_) >> { Consumer consumer -> consumer.accept(Stub(ProjectInternal)) } } def "resolves project dependency"() { setup: def selector = TestComponentIdentifiers.newSelector(":project")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 4.6K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/initialization/buildsrc/BuildSrcBuildListenerFactory.java
} @Override @SuppressWarnings("deprecation") public void applyTasksTo(Context context, ExecutionPlan plan) { rootProjectState.applyToMutableState(rootProject -> { resolutionContext = resolver.prepareDependencyHandler(rootProject.getDependencies());
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 15 08:02:27 UTC 2024 - 4.3K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/project/BuildOperationCrossProjectConfigurator.java
} private void runProjectConfigureAction(final ProjectInternal project, final Action<? super Project> configureAction) { project.getOwner().applyToMutableState(p -> buildOperationRunner.run(new CrossConfigureProjectBuildOperation(project) { @Override public void run(BuildOperationContext context) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 09 13:00:41 UTC 2024 - 5.3K bytes - Viewed (0) -
platforms/ide/tooling-api-builders/src/test/groovy/org/gradle/tooling/internal/provider/runner/TestExecutionBuildTaskSchedulerTest.groovy
_ * gradleInternal.owner >> buildState _ * buildState.projects >> buildProjectRegistry _ * buildProjectRegistry.allProjects >> [projectState] _ * projectState.applyToMutableState(_) >> { Consumer consumer -> consumer.accept(projectInternal) } _ * context.gradle >> gradleInternal } def "empty test execution request configures no tasks"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Mar 06 06:59:43 UTC 2024 - 7.3K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/project/ProjectState.java
*/ ProjectInternal getMutableModel(); /** * Returns the lock that will be acquired when accessing the mutable state of this project via {@link #applyToMutableState(Consumer)} and {@link #fromMutableState(Function)}. * A caller can optionally acquire this lock before calling one of these accessor methods, in order to avoid those methods blocking. *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Dec 20 08:25:03 UTC 2022 - 5.3K bytes - Viewed (0)