Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 484 for ScripT (0.11 sec)

  1. subprojects/core-api/src/main/java/org/gradle/api/Script.java

     * script class will implement this interface, you can use the methods and properties declared by this interface
     * directly in your script.</p>
     *
     * <p>Generally, a {@code Script} object will have a delegate object attached to it. For example, a build script will
     * have a {@link Project} instance attached to it, and an initialization script will have a {@link
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/plugin/ScriptPluginClassLoadingIntegrationTest.groovy

        def "methods defined in script are available to used script plugins"() {
            given:
            buildScript """
              def addTask(project) {
                project.tasks.create("hello").doLast { println "hello from method" }
              }
    
              apply from: "script.gradle"
            """
    
            file("script.gradle") << "addTask(project)"
    
            when:
            succeeds "hello"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:34 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/HttpScriptPluginIntegrationSpec.groovy

            output.contains('loaded external script 2')
        }
    
        def "reports and recovers from missing remote script"() {
            String scriptName = "script-missing.gradle"
            String scriptUrl = "${server.uri}/${scriptName}"
            def scriptFile = file("script.gradle") << """
                println 'loaded remote script'
            """
    
            buildFile << """
                apply from: '${scriptUrl}'
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 30 08:26:30 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/README

    To run a specific script foo.txt
    
    	go test cmd/go -run=Script/^foo$
    
    In general script files should have short names: a few words, not whole sentences.
    The first word should be the general category of behavior being tested,
    often the name of a go subcommand (list, build, test, ...) or concept (vendor, pattern).
    
    Each script is a text archive (go doc internal/txtar).
    The script begins with an actual command script to run
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/resolver/KotlinBuildScriptDependenciesResolver.kt

    import java.io.File
    import java.security.MessageDigest
    
    import kotlin.script.dependencies.KotlinScriptExternalDependencies
    import kotlin.script.dependencies.ScriptContents
    import kotlin.script.dependencies.ScriptContents.Position
    import kotlin.script.dependencies.ScriptDependenciesResolver
    import kotlin.script.dependencies.ScriptDependenciesResolver.ReportSeverity
    
    import kotlin.collections.contentEquals
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  6. testing/soak/src/integTest/kotlin/org/gradle/kotlin/dsl/caching/ScriptCachingIntegrationTest.kt

        private
        fun randomScriptContent() =
            "println(\"${UUID.randomUUID()}\")"
    }
    
    
    private
    fun hasBody(script: String) =
        ProgramParser.parse(ProgramSource("script.gradle.kts", script), TopLevel, ProgramTarget.Project).document.let {
            it is Program.Script || it is Program.Staged
        }
    
    
    private
    data class MultiProjectCachedScripts(
        val settingsFile: CachedScript.WholeFile,
    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/PartialEvaluatorTest.kt

        }
    
        @Test
        fun `Project target - script-plugin - non-empty body`() {
    
            val source =
                ProgramSource("script-plugin.gradle.kts", "a script plugin")
    
            assertThat(
                "reduces to static program that closes target scope then applies base plugins then evaluates script body",
                partialEvaluationOf(
                    Program.Script(source),
                    ProgramKind.ScriptPlugin,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 38.9K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/groovy/scripts/internal/DefaultScriptCompilationHandlerTest.groovy

                decoder.close()
            }
        }
    
        private void evaluateScript(Script script) {
            assertThat(script, instanceOf(expectedScriptClass))
            assertEquals(script.getClass().getSimpleName(), scriptClassName)
            System.setProperty(TEST_EXPECTED_SYSTEM_PROP_KEY, "not the expected value")
            script.run()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 07 08:24:10 UTC 2023
    - 19.4K bytes
    - Viewed (0)
  9. src/cmd/go/internal/vcweb/vcweb.go

    // regenerates the repository using a script interpreted by a [script.Engine].
    // The script produces the server's contents for a corresponding root URL and
    // all subdirectories of that URL, which are then cached: subsequent requests
    // for any URL generated by the script will serve the script's previous output
    // until the script is modified.
    //
    // The script engine includes all of the engine's default commands and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/CrossBuildScriptCachingIntegrationSpec.groovy

        }
    
        def "same script can be applied from init script, settings script and build script"() {
            root {
                'common.gradle'("""
                    ${this.instrument('"common"')}
                """)
                'init.gradle'('''
                    // init script
                    apply from: 'common.gradle'
                ''')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 17:32:21 UTC 2024
    - 24.2K bytes
    - Viewed (0)
Back to top