Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 123 for MyTask (0.09 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r72/JavaVersionCrossVersionTest.groovy

    @Issue('https://github.com/gradle/gradle/issues/9339')
    @TargetGradleVersion(">=7.2")
    class JavaVersionCrossVersionTest extends ToolingApiSpecification {
    
        def setup() {
            buildFile << """
                task myTask {
                    doLast {
                        throw new RuntimeException("Boom")
                    }
                }
            """
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/CollectionPropertyIntegrationTest.groovy

            given:
            buildFile << """
    task wrongValueTypeDsl(type: MyTask) {
        doLast {
            prop = 123
        }
    }
    
    task wrongRuntimeElementType(type: MyTask) {
        doLast {
            prop = [123]
            prop.get()
        }
    }
    
    task wrongPropertyTypeDsl(type: MyTask) {
        def objects = objects
        doLast {
            prop = objects.property(Integer)
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 19:57:00 UTC 2024
    - 15K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r89/ProblemProgressEventCrossVersionTest.groovy

                }
            '''
            buildFile << '''
                tasks.register('myTask', MyTask)
            '''
    
            when:
            def listener = new ProblemProgressListener()
            withConnection { connection ->
                connection.newBuild()
                    .forTasks("myTask")
                    .addProgressListener(listener)
                    .setStandardError(System.err)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  4. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/plugins/LifecycleBasePluginIntegrationTest.groovy

        }
    
        def "can attach custom task as dependency to lifecycle task - #taskName"() {
            when:
            buildFile << """
                task myTask {}
                ${taskName}.dependsOn myTask
            """
    
            then:
            succeeds(taskName)
            executed(":myTask")
    
            where:
            taskName << ["check", "build"]
        }
    
        def "clean task honors changes to build dir location"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 2K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/configurationCache/testKit/groovy/src/main/groovy/org/example/MyPlugin.groovy

    package org.example
    
    import org.gradle.api.Plugin
    import org.gradle.api.Project
    
    class MyPlugin implements Plugin<Project> {
    
        @Override
        void apply(Project project) {
            project.tasks.register("myTask", MyTask)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 231 bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/K2IntegrationTest.kt

            assertCanConsumeK2BuildLogic()
        }
    
        private
        fun withK2BuildLogic() {
            withFile("build-logic/src/main/kotlin/MyTask.kt", """
                import org.gradle.api.DefaultTask
                import org.gradle.api.tasks.TaskAction
    
                abstract class MyTask : DefaultTask() {
                    @TaskAction fun action() { println("Doing something") }
                }
            """)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 06:52:58 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  7. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/TaskFromPluginValidationIntegrationTest.groovy

            pluginFile << """
                tasks.register("myTask", SomeTask) {
                    input.set("hello")
                    output.set(layout.buildDirectory.file("out.txt"))
                }
            """
    
            buildFile """plugins {
                id 'test.gradle.demo.plugin'
            }"""
    
            when:
            fails ':myTask'
    
            then:
            failureDescriptionContains(dummyValidationProblem {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  8. platforms/extensibility/test-kit/src/test/groovy/org/gradle/testkit/runner/internal/DefaultBuildTaskTest.groovy

    class DefaultBuildTaskTest extends Specification {
        def "can create String representation"() {
            given:
            DefaultBuildTask defaultBuildTask = new DefaultBuildTask(':myTask', TaskOutcome.SUCCESS)
    
            expect:
            defaultBuildTask.toString() == ':myTask=SUCCESS'
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 1K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/internal/project/taskfactory/TaskPropertyNamingIntegrationTest.groovy

                import org.gradle.internal.properties.*
                import org.gradle.internal.properties.bean.*
    
                import javax.annotation.Nullable
    
                task myTask(type: MyTask) {
                    inputString = "data"
    
                    nested.inputString = "data"
                    nested.inputFile = file("input-nested.txt")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 21 19:38:50 UTC 2022
    - 16.8K bytes
    - Viewed (0)
  10. .teamcity/src/test/kotlin/ApplyDefaultConfigurationTest.kt

            } answers {
                stepsCapturer.captured(steps)
                mockk()
            }
        }
    
        @Test
        fun `can apply defaults to configurations`() {
            applyDefaults(buildModel, buildType, "myTask")
    
            assertEquals(
                listOf(
                    "KILL_LEAKED_PROCESSES_FROM_PREVIOUS_BUILDS",
                    "GRADLE_RUNNER",
                    "KILL_PROCESSES_STARTED_BY_GRADLE",
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 06:42:07 UTC 2024
    - 6.4K bytes
    - Viewed (0)
Back to top