Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for beforeProject (0.26 sec)

  1. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/services/DefaultIsolatedProjectEvaluationListenerProvider.kt

    ) : IsolatedProjectEvaluationListenerProvider {
    
        private
        val beforeProject = mutableListOf<IsolatedProjectAction>()
    
        private
        val afterProject = mutableListOf<IsolatedProjectAction>()
    
        override fun beforeProject(action: IsolatedProjectAction) {
            // TODO:isolated encode Application instances as part of the Environment to avoid waste
            beforeProject.add(withUserCodeApplicationContext(action))
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsAccessFromKotlinDslIntegrationTest.groovy

                problem("Build file 'a/build.gradle.kts': Project ':a' cannot access 'Project.buildDir' functionality on another project ':b'")
            }
    
            where:
            invocation      | accessedProjects
            "beforeProject" | [":b"]
            "afterProject"  | [":b"]
        }
    
        def "reports cross-project model access from a listener added to Gradle.projectsEvaluated"() {
            createDirs("a", "b")
            settingsFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiGradleLifecycleIntegrationTest.groovy

            given:
            withSomeToolingModelBuilderPluginInBuildSrc()
            settingsFile << """
                include("a")
                include("b")
    
                gradle.lifecycle.beforeProject {
                    println("Callback before \$it")
                }
            """
            buildFile << """
                plugins.apply(my.MyPlugin)
            """
            file("a/build.gradle") << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top