Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 123 for MyTask (0.12 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskParametersIntegrationTest.groovy

                            return "second"
                        }
                    }
                }
    
                task myTask(type: CustomTask) {
                    evaluationCountService = evaluationCount
                }
    
                task printCounts {
                    dependsOn myTask
                    doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  2. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/WatchedDirectoriesFileSystemWatchingIntegrationTest.groovy

        }
    
        def "does not show unsupported watching hierarchies warning for test directory"() {
            buildFile << """
                task myTask {
                    def inputFile = file("input.txt")
                    def outputFile = file("output.txt")
                    inputs.file(inputFile)
                    outputs.file(outputFile)
                    doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r65/ToolingApiShutdownCrossVersionSpec.groovy

            buildFile.text = """
                task myTask {
                    doLast {
                        println "myTask"
                    }
                }
            """.stripIndent()
    
    
            when:
            def connector = toolingApi.connector()
            withConnection(connector) { connection ->
                def build = connection.newBuild()
                build.forTasks('myTask').run()
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerSupportedBuildJvmIntegrationTest.groovy

            buildFile << """
                task myTask {
                    doLast {
                        throw new RuntimeException("Boom")
                    }
                }
            """
    
            expect:
            runner().withArguments("myTask").buildAndFail()
    
            where:
            jdk << AvailableJavaHomes.getJdks("1.8")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 3K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/DispatchingBuildCacheIntegrationTest.groovy

                import org.gradle.api.tasks.*
    
                task cacheableTask(type: MyTask) {
                    inputFile = file('input.txt')
                    outputFile = file('build/output.txt')
                    cacheOrigin = file('cache-origin.txt')
                }
    
                @CacheableTask
                class MyTask extends DefaultTask {
    
                    @OutputFile File outputFile
    
                    @InputFile
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 09 15:17:04 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/tasks/taskConstructorArgs-onTaskContainer/kotlin/build.gradle.kts

    ) : DefaultTask()
    // end::inject-task-constructor[]
    
    {
        @TaskAction
        fun run() =
            println("$message $number")
    }
    
    // tag::on-task-container[]
    tasks.register<CustomTask>("myTask", "hello", 42)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 374 bytes
    - Viewed (0)
  7. platforms/core-execution/execution-e2e-tests/src/integTest/groovy/org/gradle/integtests/StaleOutputIntegrationTest.groovy

            def fileInBuildDir = file("build/file").touch()
    
            expect:
            succeeds("myTask")
    
            when:
            invalidateBuildOutputCleanupState()
            dirInBuildDir.createDir()
            staleFileInDir.touch()
            fileInBuildDir.touch()
            then:
            succeeds("myTask")
        }
    
        // This makes sure the next Gradle run starts with a clean BuildOutputCleanupRegistry
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 04 10:15:40 UTC 2024
    - 23K bytes
    - Viewed (0)
  8. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FileCollectionIntegrationTest.groovy

                tasks.register("myTask", MyTask.class) {
                    classes.from(
                        files(${methodName}(myFc, project.layout.buildDirectory.get()))
                    )
                }
            """
    
            when:
            run "myTask"
    
            then:
            outputContains("CONSUMING build/producerOutput")
    
            when:
            run "myTask"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 12:54:09 UTC 2024
    - 21K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/plugins/mappingExtensions/groovy/app/build.gradle

            // Create and configure the extension
            def extension = project.extensions.create("myExtension", MyExtension)
            // Create and configure the custom task
            project.tasks.register("myTask", MyCustomTask) {
                group = "custom"
                inputParameter = extension.inputParameter
            }
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 21 04:16:05 UTC 2024
    - 881 bytes
    - Viewed (0)
  10. testing/integ-test/src/integTest/groovy/org/gradle/integtests/TaskExecutionIntegrationTest.groovy

        def "task disabled by #method is skipped"() {
    
            given:
            buildFile << """
                tasks.register('myTask') {
                    $code
                }
            """
    
            expect:
            2.times {
                succeeds ':myTask'
                skipped ':myTask'
            }
    
            where:
            method                     | code
            'setting enabled to false' | 'enabled = false'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 25.7K bytes
    - Viewed (0)
Back to top