Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for MyExtension (0.3 sec)

  1. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiCoupledProjectsIntegrationTest.groovy

            """
            file("a/build.gradle") << """
                plugins.apply(my.MyPlugin)
                myExtension.message = "the message"
            """
            file("b/build.gradle") << """
                plugins.apply(my.MyPlugin)
                def otherProject = project(':a')
                myExtension.message = otherProject.myExtension.message
            """
    
            when:
            executer.withArguments(ENABLE_CLI, WARN_PROBLEMS_CLI_OPT)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/fixtures/ToolingApiSpec.groovy

                $builderContent
                def message = project.myExtension.message.get()
                return new MyModel(message)
            """)
    
            addBuilderRegisteringPluginImplementation(childBuildName, "MyModelBuilder", """
                def model = project.extensions.create("myExtension", MyExtension)
                model.message = "It works from project \${project.identityPath}"
            """)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiGradleLifecycleIntegrationTest.groovy

            then:
            model2.size() == 2
            fixture.assertStateLoaded()
            outputDoesNotContain("Callback before")
    
    
            when:
            buildFile << """
                myExtension.message = "updated message for root"
            """
    
            withIsolatedProjects()
            def model3 = runBuildAction(new FetchCustomModelForEachProject())
    
            then:
            model3.size() == 2
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsAccessFromGroovyDslIntegrationTest.groovy

            """
    
            file("b/build.gradle") << """
                import ${Property.name}
    
                interface MyExtension {
                    Property<String> getFoo()
                }
    
                def myExtension = extensions.create('myExtension', MyExtension)
                myExtension.foo.set('configured')
            """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiParallelConfigurationIntegrationTest.groovy

            and:
            fixture.assertStateLoaded()
    
            when:
            file("a/build.gradle") << """
                myExtension.message = 'this is project a'
            """
            file("b/build.gradle") << """
                myExtension.message = 'this is project b'
            """
    
            server.expect("configure-root")
            server.expectConcurrent("configure-a", "configure-b")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiBuildActionIntegrationTest.groovy

            model2[1].message == "It works from project :a"
    
            and:
            fixture.assertStateLoaded()
            outputDoesNotContain("creating model")
    
            when:
            buildFile << """
                myExtension.message = 'this is the root project'
            """
    
            executer.withArguments(ENABLE_CLI)
            def model3 = runBuildAction(new FetchCustomModelForEachProject())
    
            then:
            model3.size() == 2
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiModelQueryIntegrationTest.groovy

            model2.message == "It works from project :"
    
            and:
            fixture.assertStateLoaded()
            outputDoesNotContain("creating model")
    
            when:
            buildFile << """
                myExtension.message = 'this is the root project'
            """
    
            executer.withArguments(ENABLE_CLI)
            def model3 = fetchModel()
    
            then:
            model3.message == "this is the root project"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.5K bytes
    - Viewed (0)
Back to top