Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 198 for scriptDsl (0.22 sec)

  1. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/JavaLibraryInitIntegrationTest.groovy

            def dslFixture = dslFixtureFor(scriptDsl)
            buildFileSeparatesImplementationAndApi(dslFixture, 'junit.jupiter')
    
            when:
            run("build")
    
            then:
            assertTestPassed("org.example.LibraryTest", "someLibraryMethodReturnsTrue")
    
            where:
            scriptDsl << ScriptDslFixture.SCRIPT_DSLS
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 03:26:38 UTC 2024
    - 11.8K bytes
    - Viewed (1)
  2. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/MavenConversionIntegrationTest.groovy

            m2.generateUserSettingsFile(m2.mavenRepo())
            using m2
        }
    
        def "multiModule init with incubating"() {
            def dsl = dslFixtureFor(scriptDsl)
            def conventionPluginScript = targetDir.file("build-logic/src/main/${scriptDsl.name().toLowerCase()}/${scriptDsl.fileNameFor("buildlogic.java-conventions")}")
            def conventionPluginBuildFile = targetDir.file("build-logic/" + dsl.buildFileName)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 14 15:23:34 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  3. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/BuildInitPluginIntegrationTest.groovy

        }
    
        def "creates a simple project with #scriptDsl build scripts when no pom file present and no type specified"() {
            given:
            useTestDirectoryThatIsNotEmbeddedInAnotherBuild()
            def dslFixture = ScriptDslFixture.of(scriptDsl, targetDir, null)
    
            when:
            runInitWith scriptDsl
    
            then:
            commonFilesGenerated(scriptDsl, dslFixture)
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 13:39:44 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  4. src/cmd/go/internal/vcweb/vcweb.go

    	prefix := path.Join("/", filepath.ToSlash(relDir))
    
    	r.mu.RLock()
    	defer r.mu.RUnlock()
    	for {
    		// For efficiency, we cache the script's output (in the work directory)
    		// across invocations. However, to allow for rapid iteration, we hash the
    		// script's contents and regenerate its output if the contents change.
    		//
    		// That way, one can use 'go run main.go' in this directory to stand up a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/README

    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") }
    
    Each script runs in a fresh temporary work directory tree, available to scripts as $WORK.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/HttpScriptPluginIntegrationSpec.groovy

            String scriptName = "script-missing.gradle"
            String scriptUrl = "${server.uri}/${scriptName}"
            def scriptFile = file("script.gradle") << """
                println 'loaded remote script'
            """
    
            buildFile << """
                apply from: '${scriptUrl}'
            """
    
            when:
            server.expectGetMissing("/" + scriptName)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 30 08:26:30 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/KotlinScript.kt

        /**
         * Resolves a file path to a URI, relative to this script's target base directory.
         *
         * Evaluates the provided path object as described for [file],
         * with the exception that any URI scheme is supported, not just `file:` URIs.
         */
        fun uri(path: Any): URI
    
        /**
         * Resolves a file path relative to this script's target base directory.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  8. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/InitScriptApi.kt

         */
        @Suppress("unused")
        val resources: ResourceHandler by unsafeLazy { fileOperations.resources }
    
        /**
         * Returns the relative path from this script's target base directory to the given path.
         *
         * The given path object is (logically) resolved as described for [KotlinInitScript.file],
         * from which a relative path is calculated.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/authoring-builds/basics/writing_build_scripts.adoc

    ====
    include::sample[dir="snippets/tutorial/groovy/groovy",files="build.gradle[tags=closureDelegates]"]
    ====
    
    [[script-default-imports]]
    == Default imports
    
    To make build scripts more concise, Gradle automatically adds a set of import statements to scripts.
    
    As a result, instead of writing `throw new org.gradle.api.tasks.StopExecutionException()`, you can write `throw new StopExecutionException()` instead.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 22:22:43 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/CrossBuildScriptCachingIntegrationSpec.groovy

            when:
            run 'help'
    
            then:
            def scripts = scriptDetails()
            scripts.size() == 3
            hasScript("settings", scripts)
            hasScript(":core", scripts)
            hasScript(":module1", scripts)
            eachScriptIsUnique(scripts)
            getCompileBuildFileOperationsCount() == 4 // classpath + body for settings and for the 2 identical scripts
        }
    
    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