Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 116 for MyTask (0.12 sec)

  1. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/continuous/BuildScriptChangesContinuousBuildIntegrationTest.groovy

                tasks.register("myTask") {
                  ${variableDefinition} inputFile = file("input/marker")
                  inputs.files(inputFile)
                  outputs.files("build/marker")
                  doLast {
                    println("value: " + inputFile.${readTextMethod})
                  }
                }
            """
    
            when:
            succeeds(":myTask")
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/BuildOperationsFileSystemWatchingIntegrationTest.groovy

            }
            executer.requireDaemon()
        }
    
        def "emits build operations when watching is enabled"() {
            when:
            withWatchFs().run "myTask"
            then:
            executedAndNotSkipped(":myTask")
            def startedResult = buildStartedResult()
            startedResult.watchingEnabled
            startedResult.startedWatching
            startedResult.statistics == null
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/options/TaskOptionIntegrationTest.groovy

                  }
                }
    
                tasks.register("myTask", MyTask.class)
            '''
    
            when:
            succeeds('myTask', '--serial=1234', '--serialNumber=4321')
    
            then:
            result.assertTaskExecuted(':myTask').assertOutputContains('Serial: 4321')
    
            when:
            succeeds('myTask', '--serialNumber=4321', '--serial=1234')
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/configurationCache/testKit/kotlin/src/main/kotlin/org/example/my-plugin.gradle.kts

    package org.example
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 54 bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r33/IncompatibilityCrossVersionSpec.groovy

            builder.sourceFile("com/example/MyTask.java") << """
                package com.example;
    
                import org.gradle.api.*;
                import org.gradle.api.tasks.*;
    
                public class MyTask extends DefaultTask {
                    public MyTask() {
                        getInputs().file("somefile");
                        getInputs().files("afile", "anotherfile");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/continuous/SmokeContinuousIntegrationTest.groovy

            buildFile << """
                task myTask {
                  def inputFile = file("input/marker")
                  inputs.files inputFile
                  outputs.files "build/marker"
                  doLast {
                    println "exists: " + inputFile.exists()
                  }
                }
            """
    
            when:
            succeeds("myTask")
            then:
            output.contains "exists: false"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 18.5K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/ProcessOutputProviderIntegrationTest.groovy

                }
    
                abstract class MyTask extends DefaultTask {
                    @Input
                    abstract Property<String> getScriptOutput()
                    @TaskAction
                    def action() {
                        println(scriptOutput.get())
                    }
                }
                tasks.register("printScriptOutput", MyTask) {
                    scriptOutput = execProvider.standardOutput.asText
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 8K bytes
    - Viewed (0)
  8. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/CommonPluginValidationTrait.groovy

        }
    
        TestFile getJavaTaskSource() {
            source("src/main/java/MyTask.java")
        }
    
        TestFile getGroovyTaskSource() {
            buildFile  """
                apply plugin: "groovy"
            """
            source("src/main/groovy/MyTask.groovy")
        }
    
        TestFile getKotlinTaskSource() {
            buildFile.delete()
            buildKotlinFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 14:30:05 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/configurationCache/testKit/groovy/src/test/groovy/org/example/BuildLogicFunctionalTest.groovy

                }
            """
    
            when:
            runner()
                .withArguments('--configuration-cache', 'myTask')    // <1>
                .build()
    
            and:
            def result = runner()
                .withArguments('--configuration-cache', 'myTask')    // <2>
                .build()
    
            then:
            result.output.contains('Reusing configuration cache.')      // <3>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  10. testing/soak/src/integTest/kotlin/org/gradle/kotlin/dsl/caching/ScriptCachingIntegrationTest.kt

            // given: buildSrc memory hog
            val memoryHogMb = 128
            val myTask = withFile(
                "buildSrc/src/main/groovy/MyTask.groovy",
                """
                import org.gradle.api.*
                import org.gradle.api.tasks.*
    
                class MyTask extends DefaultTask {
                    static final byte[][] MEMORY_HOG = new byte[1024][1024 * $memoryHogMb]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 11:33:23 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top