Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 181 for realizes (0.22 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/AbstractQueryDomainObjectContainerIntegrationTest.groovy

            expect:
            succeeds "help"
    
            where:
            queryMethod << getQueryMethods()
        }
    
        def "can execute query method #queryMethod.key from Provider.configure (realized)"() {
            buildFile << """
                realized.configure {
                    ${queryMethod.value}
                }
                toBeRealized.get()
            """
    
            expect:
            succeeds "help"
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Nov 05 09:53:33 UTC 2021
    - 3.1K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/api/internal/plugins/RuleSourceApplicationTest.groovy

            project.apply plugin: 'custom-rule-source'
    
            then:
            project.modelRegistry.realize("foo", String) == "bar"
        }
    
        def "can apply a rule source by type"() {
            when:
            def project = buildProject()
            project.apply type: CustomRuleSource
    
            then:
            project.modelRegistry.realize("foo", String) == "bar"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 21:54:27 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/core/InstanceBackedModelRegistrationTest.groovy

            then:
            !foo.promise.canBeViewedAs(ModelType.of(String))
            foo.promise.canBeViewedAs(ModelType.of(List))
    
            registry.realize(fooReference.path, fooReference.type).is(fooList)
            registry.realize(barReference.path, barReference.type).is(barList)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/api/internal/collections/ElementSourceSpec.groovy

            and:
            source.iterator().collect() == iterationOrder("foo", "bar", "baz", "fizz", "fuzz", "bazz")
        }
    
        def "once realized, provided values appear like realized values"() {
            when:
            source.addPending(provider("foo"))
            source.add("bar")
            source.add("baz")
            source.addPending(provider("fizz"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Aug 25 10:08:46 UTC 2022
    - 9.5K bytes
    - Viewed (0)
  5. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/binaryinfo/OtoolBinaryInfo.groovy

            def process = ['ar', '-t', binaryFile.getAbsolutePath()].execute(environments, null)
            return process.inputStream.readLines().drop(1)
        }
    
        List<String> listLinkedLibraries() {
            def process = ['otool', '-L', binaryFile.absolutePath].execute(environments, null)
            def lines = process.inputStream.readLines()
            return lines
        }
    
        List<Symbol> listSymbols() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/api/internal/collections/IterationOrderRetainingSetElementSourceTest.groovy

            source.contains("foo")
        }
    
        def "an element added as both a provider and a realized value is not duplicated"() {
            when:
            source.add("foo")
            source.addPending(provider("foo"))
    
            then:
            source.iterator().collect() == ["foo"]
        }
    
        def "an element added as both a provider and a realized value has the correct order"() {
            when:
            source.addPending(provider("foo"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 06:43:26 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ProviderApiDependenciesIntegrationTest.groovy

        id 'java'
    }
    
    def version = objects.property(String)
    
    configurations.testImplementation.dependencies.addLater(version.map { project.dependencies.create("com.example:artifact:\${it}") })
    
    tasks.all {} // force realize all tasks
    
    version.set('5.6')
    
    assert configurations.testRuntimeClasspath.allDependencies.size() == 1 
            """
            expect:
            succeeds("help")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  8. platforms/ide/ide-native/src/main/groovy/org/gradle/ide/visualstudio/plugins/VisualStudioPluginRules.java

            }
        }
    
        static class VisualStudioPluginRootRules extends RuleSource {
            // This ensures that subprojects are realized and register their project and project configuration IDE artifacts
            @Mutate
            public static void ensureSubprojectsAreRealized(TaskContainer tasks, ProjectIdentifier projectIdentifier, ServiceRegistry serviceRegistry) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/local/model/PublishArtifactLocalArtifactMetadata.java

            this.componentIdentifier = componentIdentifier;
            this.publishArtifact = publishArtifact;
            // In case the publish artifact is backed by an ArchiveTask, this causes the task to be realized.
            // However, if we are at this point, we need the realized task to determine the archive extension/type later
            // to set the 'artifactType' attribute required in matching (even if the variant with the artifact is not selected in the end).
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 07 18:43:39 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/rules/ComponentMetadataRulesErrorHandlingIntegrationTest.groovy

                }
            """
            resolve.prepare()
        }
    
        def "produces sensible error when bad code is supplied in component metadata rule" () {
            def lines = buildFile.readLines().size()
            buildFile << """
                class WrongRule implements ComponentMetadataRule {
                    public void execute(ComponentMetadataContext context) {
                        foo()
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 7.2K bytes
    - Viewed (0)
Back to top