- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 32 for withModel (0.12 sec)
-
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/m5/ToolingApiModelCrossVersionSpec.groovy
def "receives progress while the model is building"() { file('build.gradle') << ''' System.out.println 'this is stdout' System.err.println 'this is stderr' ''' when: def progress = withModel(GradleProject.class).progressMessages progress.removeLast() then: progress.size() >= 2 progress.every { it } } def "tooling api reports failure to build model"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 1.8K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r15/ToolingApiConfigurationOnDemandCrossVersionSpec.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 2K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/plugins/ide/tooling/r31/PersistentCompositeDependencySubstitutionCrossVersionSpec.groovy
} @TargetGradleVersion(">=3.3") def "Does not execute tasks for included builds when generating IDE models"() { when: def modelOperation = withModel(modelType) def modelInstance = modelOperation.model then: modelType.isInstance modelInstance modelOperation.result.assertTasksExecuted() where:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 16 10:10:39 UTC 2024 - 8K bytes - Viewed (0) -
platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/ToolingApiSpecification.groovy
toolingApi.withConnection(cl) } catch (GradleConnectionException e) { caughtGradleConnectionException = e throw e } } ConfigurableOperation withModel(Class modelType, Closure cl = {}) { withConnection { def model = it.model(modelType) cl(model) new ConfigurableOperation(model).buildModel() } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 16 10:10:39 UTC 2024 - 16.6K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/api/tasks/util/internal/PatternSetAntBuilderDelegate.java
private static Object or(Object node, Action<Object> withNode) { return logical(node, "or", withNode); } private static Object not(Object node, Action<Object> withNode) { return logical(node, "not", withNode); } private static Object addFilenames(Object node, Iterable<String> filenames, boolean caseSensitive) { GroovyObject groovyObject = (GroovyObject) node;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 12 07:56:48 UTC 2021 - 3.7K bytes - Viewed (0) -
platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/ActionNodeCodec.kt
import org.gradle.internal.serialize.graph.readNonNull import org.gradle.internal.serialize.graph.withCodec import org.gradle.execution.plan.ActionNode class ActionNodeCodec( private val userTypesCodec: Codec<Any?>, ) : Codec<ActionNode> { override suspend fun WriteContext.encode(value: ActionNode) { withCodec(userTypesCodec) { write(value.action) } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 1.4K bytes - Viewed (0) -
platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/codecs/DelegatingCodec.kt
import org.gradle.internal.serialize.graph.withCodec /** * A codec that delegates to some more general codec, but only for a specific type */ class DelegatingCodec<T>( private val userTypesCodec: Codec<Any?>, ) : Codec<T> { override suspend fun WriteContext.encode(value: T) { // Delegate to the other codec withCodec(userTypesCodec) { write(value) } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 04 18:56:44 UTC 2024 - 1.4K bytes - Viewed (0) -
platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/LargeChildMap.java
} @Override public <R> R withNode(VfsRelativePath targetPath, CaseSensitivity caseSensitivity, NodeHandler<T, R> handler) { int childIndexWithCommonPrefix = findChildIndexWithCommonPrefix(targetPath, caseSensitivity); if (childIndexWithCommonPrefix >= 0) { Entry<T> entry = entries.get(childIndexWithCommonPrefix); return entry.withNode(targetPath, caseSensitivity, handler); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:34:50 UTC 2023 - 1.3K bytes - Viewed (0) -
platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/SingletonChildMap.java
} @Override public <R> R withNode(VfsRelativePath targetPath, CaseSensitivity caseSensitivity, NodeHandler<T, R> handler) { return entry.withNode(targetPath, caseSensitivity, handler); } @Override public <RESULT> ChildMap<RESULT> invalidate(VfsRelativePath targetPath, CaseSensitivity caseSensitivity, InvalidationHandler<T, RESULT> handler) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 23 13:19:32 UTC 2023 - 4.5K bytes - Viewed (0) -
platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/SnapshotUtil.java
return children.withNode(targetPath, caseSensitivity, new ChildMap.NodeHandler<T, Optional<MetadataSnapshot>>() { @Override public Optional<MetadataSnapshot> handleAsDescendantOfChild(VfsRelativePath pathInChild, T child) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 26 16:02:34 UTC 2024 - 5.4K bytes - Viewed (0)