Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for fetchModel (0.37 sec)

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

            file("a/build.gradle") << ""
            file("b/build.gradle") << ""
    
            when:
            def originalModel = fetchModel(GradleProject)
    
            then:
            fixture.assertNoConfigurationCache()
    
            when:
            executer.withArguments(ENABLE_CLI)
            def model = fetchModel(GradleProject)
    
            then:
            fixture.assertStateStored {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiModelQueryIntegrationTest.groovy

            when:
            executer.withArguments(ENABLE_CLI)
            fetchModel(SomeToolingModel, "help")
    
            then:
            notExecuted("help")
            fixture.assertStateStored {
                projectsConfigured(":buildSrc", ":")
                modelsCreated(":")
            }
    
            when:
            executer.withArguments(ENABLE_CLI)
            fetchModel(SomeToolingModel, ":dummyTask")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiIdeaProjectIntegrationTest.groovy

            def ideaModel = fetchModel(IdeaProject)
    
            then:
            fixture.assertStateStored {
                modelsCreated(":", models(IdeaProject, pluginApplyingModel, IsolatedGradleProjectInternal, IsolatedIdeaModuleInternal))
            }
    
            then:
            ideaModel.name == "root"
    
            when:
            executer.withArguments(ENABLE_CLI)
            fetchModel(IdeaProject)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiKotlinDslIntegrationTest.groovy

            """)
            withBuildScript()
            withBuildScriptIn("a")
    
            when:
            def originalModel = fetchModel(KotlinDslScriptsModel)
    
            then:
            fixture.assertNoConfigurationCache()
    
    
            when:
            withIsolatedProjects()
            def model = fetchModel(KotlinDslScriptsModel)
    
            then:
            fixture.assertStateStored {
                modelsCreated(":", KotlinDslScriptsModel)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheToolingApiInvocationIntegrationTest.groovy

            buildWithSomeToolingModelAndScriptLogStatement()
    
            when:
            def model = fetchModel()
    
            then:
            model.message == "It works from project :"
            outputContains("script log statement")
    
            when:
            def model2 = fetchModel()
    
            then:
            model2.message == "It works from project :"
            outputContains("script log statement")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/fixtures/ToolingApiSpec.groovy

                            id = "$pluginId"
                            implementationClass = "$implClass"
                        }
                    }
                }
            """
        }
    
        def <T> T fetchModel(Class<T> type = SomeToolingModel.class, String... tasks = null) {
            def model = null
            result = toolingApiExecutor.runBuildWithToolingConnection { connection ->
                def output = new ByteArrayOutputStream()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiParallelConfigurationIntegrationTest.groovy

            given:
            server.expect("configure-root")
            server.expectConcurrent("configure-a", "configure-b")
    
            when:
            executer.withArguments(ENABLE_CLI)
            def model = fetchModel(GradleProject)
    
            then:
            model.name == "root"
            model.children.name == ["a", "b"]
    
            and:
            fixture.assertStateStored {
                projectsConfigured(":", ":a", ":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)
Back to top