Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 403 for stage1 (0.16 sec)

  1. testing/soak/src/integTest/kotlin/org/gradle/kotlin/dsl/caching/fixtures/CompilationCache.kt

            stage1 = CachedScript.CompilationStage(Gradle, ScriptPlugin, "stage1", Descriptions.script, file),
            stage2 = CachedScript.CompilationStage(Gradle, ScriptPlugin, "stage2", Descriptions.script, file, hasInitscriptBlock && hasBody)
        )
    
    
    fun cachedSettingsFile(file: File, hasBuildscriptBlock: Boolean = false, hasBody: Boolean = false) =
        CachedScript.WholeFile(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/Program.kt

        /**
         * A script that must be dynamically evaluated after stage 1 completes and the script classpath
         * becomes available.
         */
        data class Script(val source: ProgramSource) : Program()
    
        /**
         * A [Stage1] program followed by a stage 2 [Script] program.
         */
        data class Staged(val stage1: Stage1, val stage2: Script) : Program()
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/PartialEvaluator.kt

            else -> CloseTargetScope
        }
    
        private
        fun reduceStagedProgram(program: Program.Staged): Dynamic =
    
            Dynamic(
                reduceStage1Program(program.stage1),
                program.stage2.source
            )
    
        private
        fun reduceStage1Program(stage1: Program.Stage1): Static = when (stage1) {
    
            is Program.Buildscript ->
    
                when (programTarget) {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  4. testing/soak/src/integTest/kotlin/org/gradle/kotlin/dsl/caching/fixtures/KotlinDslCacheFixtures.kt

    }
    
    
    sealed class CachedScript {
    
        class WholeFile(
            val stage1: CompilationStage,
            val stage2: CompilationStage
        ) : CachedScript() {
    
            val stages = listOf(stage1, stage2)
        }
    
        class CompilationStage(
            programTarget: ProgramTarget,
            programKind: ProgramKind,
            val stage: String,
            sourceDescription: String,
            val file: File,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/PartialEvaluatorTest.kt

                        Static(
                            SetupEmbeddedKotlin,
                            ApplyPluginRequestsOf(program.stage1),
                        ),
                        body
                    )
                )
            )
        }
    
        @Test
        fun `Stage1 only Program is unsupported`() {
            ProgramTarget.values().forEach { programTarget ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 38.9K bytes
    - Viewed (0)
  6. testing/soak/src/integTest/kotlin/org/gradle/kotlin/dsl/caching/ScriptCachingIntegrationTest.kt

                    compilationTrace(projectRoot) {
                        assertScriptCompile(settingsFile.stage1)
                        assertNoScriptCompile(settingsFile.stage2)
                        assertNoScriptCompile(rootBuildFile.stage1)
                        assertScriptCompile(rootBuildFile.stage2)
                    }
                    // then: single compilation and classloading
                    compilationCache {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 11:33:23 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/ResidualProgramCompilerTest.kt

                """
                    plugins { println("stage 1") }
                    print("stage 2")
                """.replaceIndent()
            )
    
            val fragment = source.fragment(0..6, 8..29)
            val stage1 = Program.Plugins(fragment)
            val stage2 = source.map { it.erase(listOf(fragment.range)) }
            val stagedProgram = Dynamic(
                Static(ApplyPluginRequestsOf(stage1), ApplyBasePlugins),
                stage2
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 13:09:45 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  8. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/ProgramParser.kt

                        )
                    }
    
                val stage2 = remainingSource
                    .takeIf { it.text.isNotBlank() }
                    ?.let(Program::Script)
    
                stage1?.let { s1 ->
                    stage2?.let { s2 ->
                        Program.Staged(s1, s2)
                    } ?: s1
                }
                    ?: stage2
                    ?: Program.Empty
            }
        }
    
        private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/ResidualProgramCompiler.kt

                    ?: compiledScriptClassName
            }
        )
    
        /**
         * Stage descriptions for build operations.
         *
         * Changes to these constants must be coordinated with the GE team.
         */
        private
        object StableDisplayNameFor {
    
            const val stage1 = "CLASSPATH"
    
            const val stage2 = "BODY"
        }
    
        private
        val stage1ScriptDefinition
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 13:09:45 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  10. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/InterpreterTest.kt

            val accessorsClassPathHash = TestHashCodes.hashCodeFrom(0)
            val accessorsClassPath = ClassPath.EMPTY
            val stage1TemplateId = "Settings/TopLevel/stage1"
            val stage2TemplateId = "Settings/TopLevel/stage2"
    
            val scriptSourceResource = mock<TextResource> {
                on { getText() } doReturn text
            }
    
            val scriptSource = mock<ScriptSource> {
                on { fileName } doReturn scriptPath
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 13:09:45 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top