Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for MyTask (0.28 sec)

  1. platforms/documentation/docs/src/docs/userguide/releases/upgrading/upgrading_version_4.adoc

    General::
     * `<<` for task definitions no longer works. In other words, you can not use the syntax `task myTask << { ... }`.
    +
    Use the link:{groovyDslPath}/org.gradle.api.Task.html#org.gradle.api.Task:doLast(org.gradle.api.Action)[Task.doLast()] method instead, like this:
    +
    ----
    task myTask {
        doLast {
            ...
        }
    }
    ----
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 03:01:48 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheProblemReportingIntegrationTest.groovy

                        task.$code
                    }
                }
    
                tasks.register("a", MyTask)
                tasks.register("b", MyTask) {
                    doLast(new MyAction())
                }
                tasks.register("c") {
                    doFirst(new MyAction())
                }
                tasks.register("d") {
                    doFirst { $code }
                }
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 56.7K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/docs/userguide/releases/upgrading/upgrading_version_8.adoc

    Consider the case where the set of attributes on a `Configuration` is changed after an `ArtifactView` is created.
    ====
    [.multi-language-sample]
    =====
    .build.gradle.kts
    [source,kotlin]
    ----
    tasks {
        myTask {
            inputFiles.from(configurations.classpath.incoming.artifactView {
                attributes {
                    // Add attributes to select a different type of artifact
                }
            }.files)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 17:01:07 UTC 2024
    - 90.7K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/docs/userguide/api/kotlin_dsl.adoc

    Here's a simple example demonstrating how to set and read extra properties using the map syntax:
    
    .build.gradle.kts
    [source,kotlin]
    ----
    extra["myNewProperty"] = "initial value"  // <1>
    
    tasks.create("myTask") {
        doLast {
            println("Property: ${project.extra["myNewProperty"]}")  // <2>
        }
    }
    ----
    <1> Creates a new project extra property called `myNewProperty` and sets its value
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 20:16:10 UTC 2024
    - 55.4K bytes
    - Viewed (0)
Back to top