Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 790 for scriptId (0.17 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/plugin/ScriptPluginClassLoadingIntegrationTest.groovy

        def "can use apply block syntax to apply multiple scripts"() {
            given:
            buildScript """
              apply {
                from "script1.gradle"
                from "script2.gradle"
              }
            """
    
            file("script1.gradle") << "task hello1 { doLast { println 'hello from script1' } }"
            file("script2.gradle") << "task hello2 { doLast { println 'hello from script2' } }"
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:34 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/CrossBuildScriptCachingIntegrationSpec.groovy

        }
    
        void scriptsAreReused(List<ClassDetails> before, List<ClassDetails> after) {
            assert before.size() == after.size()
            for (int i = 0; i < before.size(); i++) {
                def script1 = before[i]
                def script2 = after[i]
                assert script1.path == script2.path
                assert script1.className == script2.className
                assert script1.classpath == script2.classpath
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 17:32:21 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  3. analysis/analysis-api/testData/components/containingDeclarationProvider/containingModuleByFile/script.txt

    File: script.kts
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Mar 22 16:00:27 UTC 2024
    - 64 bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/initialization/InitScriptHandlerTest.groovy

        def "does nothing when there are no init scripts"() {
            given:
            startParameter.allInitScripts >> []
    
            when:
            handler.executeScripts(gradle)
    
            then:
            0 * executor._
            0 * processor._
        }
    
        def "finds and processes init scripts"() {
            File script1 = testDirectoryProvider.createFile("script1.gradle")
            File script2 = testDirectoryProvider.createFile("script2.gradle")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. src/cmd/go/scriptcmds_test.go

    }
    
    // scriptCC runs the C compiler along with platform specific options.
    func scriptCC(cmdExec script.Cmd) script.Cmd {
    	return script.Command(
    		script.CmdUsage{
    			Summary: "run the platform C compiler",
    			Args:    "args...",
    		},
    		func(s *script.State, args ...string) (script.WaitFunc, error) {
    			b := work.NewBuilder(s.Getwd())
    			wait, err := cmdExec.Run(s, append(b.GccCmd(".", ""), args...)...)
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 18:33:17 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/groovy/scripts/internal/BuildScopeInMemoryCachingScriptClassCompiler.java

     * If the compiled script is not found in this cache, it will try to find it in the global cache,
     * which will use the delegate script class compiler in case of a miss. The lookup in this cache is
     * more efficient than looking in the global cache, as we do not check the script's hash code here,
     * assuming that it did not change during the build.
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 08 16:35:08 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/docs/userguide/authoring-builds/other/init_scripts.adoc

    Each init script has a link:{groovyDslPath}/org.gradle.api.invocation.Gradle.html[Gradle] instance associated with it.
    Any property reference and method call in the init script will be delegated to this `Gradle` instance.
    
    Each init script implements the link:{groovyDslPath}/org.gradle.api.Script.html[Script] interface.
    
    [NOTE]
    ====
    When writing init scripts, pay attention to the scope of the reference you are trying to access.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 05:36:09 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/README

    The script begins with an actual command script to run
    followed by the content of zero or more supporting files to
    create in the script's temporary file system before it starts executing.
    
    As an example, run_hello.txt says:
    
    	# hello world
    	go run hello.go
    	stderr 'hello world'
    	! stdout .
    
    	-- hello.go --
    	package main
    	func main() { println("hello world") }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/samples/ide/problems-api-usage/kotlin/reporters/script-plugin/src/main/kotlin/reporters/script.plugin.gradle.kts

    val gradleInternal = gradle as GradleInternal
    val problems = gradleInternal.services.get(Problems::class.java)
    
    problems.forNamespace("buildscript").reporting {
        id("adhoc-script-deprecation", "Deprecated script plugin")
            .contextualLabel("Deprecated script plugin 'demo-script-plugin'")
            .severity(Severity.WARNING)
            .solution("Please use 'standard-plugin-2' instead of this plugin")
    }
    
    tasks {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 13:35:05 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/running-builds/introduction/build_file_basics.adoc

    [[sec:build_script]]
    == Build scripts
    
    The build script is either a `build.gradle` file written in Groovy or a `build.gradle.kts` file in Kotlin.
    
    The link:{groovyDslPath}/index.html[Groovy DSL^] and the link:{kotlinDslPath}/index.html[Kotlin DSL^] are the only accepted languages for Gradle scripts.
    
    Let's take a look at an example and break it down:
    
    ====
    [.multi-language-sample]
    =====
    .build.gradle.kts
    [source,kotlin]
    ----
    plugins {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 23 03:39:56 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top