Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for MyTask (0.1 sec)

  1. 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)
  2. 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)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/DynamicObjectIntegrationTest.groovy

    interface Transformer {}
    
    class Impl implements Transformer {}
    
    class MyTask extends DefaultTask {
        public void transform(Class<? extends Transformer> c) {
            logger.lifecycle("transform(Class)")
        }
    
        public void transform(Transformer t) {
            logger.lifecycle("transform(Transformer)")
        }
    }
    
    task print(type: MyTask) {
        transform(Impl) // should call transform(Class)
    }
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:33 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  4. subprojects/core-api/src/main/java/org/gradle/api/Task.java

     * org.gradle.api.tasks.TaskContainer#create(String)} creates an empty task with the given name. You can also use the
     * {@code task} keyword in your build file: </p>
     * <pre>
     * task myTask
     * task myTask { configure closure }
     * task myTask(type: SomeType)
     * task myTask(type: SomeType) { configure closure }
     * </pre>
     *
     * <p>Each task has a name, which can be used to refer to the task within its owning project, and a fully qualified
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 17:25:12 UTC 2024
    - 31.6K bytes
    - Viewed (0)
  5. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/JavaToolchainBuildOperationsIntegrationTest.groovy

                }.get().executablePath)
    
                task myTask {
                    doLast {
                        println "Hello from \${name}"
                    }
                }
            """
    
            when:
            withInstallations(jdkMetadata).run(":myTask")
            def events = toolchainEvents(":myTask")
    
            then:
            events.size() == 0
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 06:42:07 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/docs/userguide/reference/command_line_interface.adoc

    To execute a task called `myTask` on the root project, type:
    
    ----
    $ gradle :myTask
    ----
    
    This will run the single `myTask` and all of its <<tutorial_using_tasks.adoc#sec:task_dependencies,dependencies>>.
    
    [[sec:disambiguate_task_options_from_built_in_options]]
    === Specify options for tasks
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 05:36:09 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r68/CompositeBuildTaskExecutionCrossVersionSpec.groovy

            file('other-build/settings.gradle') << "rootProject.name = 'other-build'"
            file('other-build/build.gradle') << """
                tasks.register('doSomething', MyTask)
    
                class MyTask extends DefaultTask {
                    private String content = 'default content'
    
                    @Option(option = "content", description = "Message to print")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheValueSourceIntegrationTest.groovy

                    }
                }
    
                abstract class MyTask extends DefaultTask {
                    @Input
                    abstract Property<String> getGreeting()
    
                    @TaskAction void run() { println greeting.get() }
                }
    
                def greetValueSource = providers.of(GreetValueSource) {}
                tasks.register("greet", MyTask) {
                    greeting = greetValueSource
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  9. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorIntegrationTest.groovy

                }
            """
            file('build-logic/src/main/groovy/MyTask.groovy') << """
                import org.gradle.api.*
                import org.gradle.api.file.*
                import org.gradle.api.tasks.*
                import org.gradle.workers.*
                import javax.inject.Inject
    
                abstract class MyTask extends DefaultTask {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 13:00:39 UTC 2024
    - 31K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedCustomTaskExecutionIntegrationTest.groovy

        }
    
        def "buildSrc is loaded from cache"() {
            configureCacheForBuildSrc()
            file("buildSrc/src/main/groovy/MyTask.groovy") << """
                import org.gradle.api.*
    
                class MyTask extends DefaultTask {}
            """
    
            when:
            withBuildCache().run "help"
            then:
            result.assertTaskNotSkipped(":buildSrc:compileGroovy")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 30.6K bytes
    - Viewed (0)
Back to top