Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 60 for MyTask (0.15 sec)

  1. platforms/documentation/docs/src/snippets/tutorial/stopExecutionException/kotlin/build.gradle.kts

        }
    }
    
    compile {
        doFirst {
            // Here you would put arbitrary conditions in real life.
            if (true) {
                throw StopExecutionException()
            }
        }
    }
    tasks.register("myTask") {
        dependsOn(compile)
        doLast {
            println("I am not affected")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 380 bytes
    - Viewed (0)
  2. platforms/software/reporting/src/main/java/org/gradle/api/reporting/Reporting.java

     * </p>
     * <pre>
     * class MyTask implements Reporting&lt;MyReportContainer&gt; {
     *     // implementation
     * }
     *
     * interface MyReportContainer extends ReportContainer&lt;Report&gt; {
     *     Report getHtml();
     *     Report getCsv();
     * }
     * </pre>
     * <p>
     * The reporting aspects of such a task can be configured as such:
     * </p>
     * <pre>
     * task my(type: MyTask) {
     *     reports {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/internal/WrapperPluginAutoApplyActionIntegTest.groovy

            then:
            wrapper.generated("12.34")
        }
    
        def "can depend on dynamic applied wrapper task"() {
            when:
            buildFile << """
                task myTask(dependsOn:wrapper)
            """
            run 'myTask'
            then:
            wrapper.generated()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:47:19 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/tutorial/stopExecutionException/groovy/build.gradle

    }
    
    compile.configure {
        doFirst {
            // Here you would put arbitrary conditions in real life.
            if (true) {
                throw new StopExecutionException()
            }
        }
    }
    tasks.register('myTask') {
        dependsOn('compile')
        doLast {
            println 'I am not affected'
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 401 bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/plugins/mappingExtensions/kotlin/app/build.gradle.kts

            // Create and configure the extension
            val extension = project.extensions.create("myExtension", MyExtension::class.java)
            // Create and configure the custom task
            project.tasks.register("myTask", MyCustomTask::class.java) {
                group = "custom"
                inputParameter = extension.inputParameter
            }
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 21 04:16:05 UTC 2024
    - 923 bytes
    - Viewed (0)
  6. platforms/core-runtime/launcher/src/test/groovy/org/gradle/tooling/internal/provider/ProviderStartParameterConverterTest.groovy

        def "accepts launchables from consumer"() {
            given:
            def selector = Mock(LaunchableExecutionRequest)
            _ * selector.args >> ['myTask']
            _ * selector.projectPath >> ':child'
    
            params.getLaunchables() >> [selector]
    
            when:
            def start = new ProviderStartParameterConverter().toStartParameter(params, layout, properties)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/tasks/taskConstructorArgs-onTaskContainer/groovy/build.gradle

        @TaskAction
        void printIt() {
            println("$message $number")
        }
    // tag::inject-task-constructor[]
    }
    // end::inject-task-constructor[]
    
    // tag::on-task-container[]
    tasks.register('myTask', CustomTask, 'hello', 42)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 559 bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/resource/TextResourceIntegrationTest.groovy

            server.useHostname() // use localhost vs ip
            server.forbidGet("/myConfig-${uuid}.txt", resourceFile)
            server.start()
    
            buildFile << """
                task uriText(type: MyTask) {
                    config = resources.text.fromUri("${server.uri}/myConfig-${uuid}.txt")
                    output = project.file("output.txt")
                }
    """
            then:
            fails("uriText")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/PrecompiledScriptPluginErrorsIntegrationTest.kt

        fun `should not allow precompiled plugin to conflict with core plugin`() {
            withKotlinBuildSrc()
            withFile(
                "buildSrc/src/main/kotlin/java.gradle.kts",
                """
                tasks.register("myTask") {}
                """
            )
            withDefaultSettings()
            withFile(
                "build.gradle",
                """
                plugins {
                    java
                }
                """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 07:16:19 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  10. platforms/core-configuration/kotlin-dsl-integ-tests/src/crossVersionTest/groovy/org/gradle/kotlin/dsl/plugins/ProjectTheExtensionCrossVersionSpec.groovy

                plugins {
                    id("my-plugin") version "1.0"
                }
                tasks.register("myTask")
                $usageCode
            """
            version(distribution)
                .inDirectory(file("consumer"))
                .withTasks("myTask")
                .withArgument("-s")
                .run()
        }
    
        private String getUsageCode() {
            return """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 07 13:25:10 UTC 2023
    - 4.9K bytes
    - Viewed (0)
Back to top