- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 60 for MyTask (0.11 sec)
-
platforms/documentation/docs/src/snippets/configurationCache/testKit/kotlin/src/main/kotlin/org/example/MyTask.kt
package org.example import org.gradle.api.DefaultTask import org.gradle.api.tasks.TaskAction abstract class MyTask : DefaultTask() { @TaskAction fun action() = Unit
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 178 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/configurationCache/testKit/groovy/src/main/groovy/org/example/MyTask.groovy
package org.example import org.gradle.api.DefaultTask import org.gradle.api.tasks.TaskAction abstract class MyTask extends DefaultTask { @TaskAction void action() {}
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 179 bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/tasks/DeferredTaskOverwritingIntegrationTest.groovy
result.output.count("Lazy 2 :myTask") == 1 result.output.count("Configure :myTask") == 1 } def "cannot overwrite a lazy task creation with a eager task creation with a different type"() { buildFile << ''' class MyTask extends DefaultTask {} def myTask = tasks.register("myTask", SomeTask) { assert false, "This task is overwritten before been realized"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jul 13 09:05:07 UTC 2021 - 4.5K bytes - Viewed (0) -
platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/SymlinkFileSystemWatchingIntegrationTest.groovy
when: withWatchFs().run "myTask" then: skipped(":myTask") when: inputFile.text = "changed" waitForChangesToBePickedUp() withWatchFs().run "myTask" then: executedAndNotSkipped ":myTask" } def "file system watching works when the project dir is symlinked"() { def actualProjectDir = file("parent/projectDir")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 03 13:50:33 UTC 2024 - 5.8K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/cli/TaskOptionsSpec.groovy
tasks.register('mytask', MyTask.class) """ then: succeeds "--profile", "--", "mytask", "--profile", "myvalue" output.contains "profile=myvalue" output.contains "See the profiling report at" } def "passes task options associated with a task originating from buildSrc"() { when: file('buildSrc/src/main/java/MyTask.java') << """
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 5.8K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskServiceInjectionIntegrationTest.groovy
println(executor != null ? "got it" : "NOT IT") } } task myTask(type: CustomTask) """ when: fails 'myTask' then: failure.assertHasCause("Could not create task ':myTask'.") failure.assertHasCause("Could not create task of type 'CustomTask'.")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 04 22:26:51 UTC 2021 - 7.9K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/DelegatedExtraPropertiesIntegrationTest.kt
withBuildScript( """ val myTask = task("myTask") {} val foo: Int by myTask.extra foo.toString() """ ) assertThat( buildAndFail("myTask").error, containsString("Cannot get non-null extra property 'foo' as it does not exist") ) } @Test
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 1.3K bytes - Viewed (0) -
platforms/core-execution/execution-e2e-tests/src/integTest/groovy/org/gradle/integtests/NestedInputKotlinImplementationTrackingIntegrationTest.groovy
withBuildCache().run 'myTask' then: executedAndNotSkipped(':myTask') project1.file('build/tmp/myTask/output.txt').text == "hello" when: executer.inDirectory(project2) withBuildCache().run 'myTask' then: skipped(':myTask') project2.file('build/tmp/myTask/output.txt').text == "hello" }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 10 06:52:58 UTC 2024 - 7.9K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/KotlinDslAssignmentIntegrationTest.kt
fileOutput = objects.fileProperty() as Provider<RegularFile> fileOutput = file("build/myTask/hello.txt") fileOutput = provider { file("build/myTask/hello.txt") } } """.trimIndent() ) // When, Then build("myTask") } private fun withBuildScriptWithAssignment(): File {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 6.6K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/integTest/groovy/org/gradle/internal/exceptions/DefaultMultiCauseExceptionIntegrationTest.groovy
${defineTestException()} tasks.register('myTask') { doLast { throw new TestResolutionProviderException('resolution1') } } """ when: fails 'myTask' then: failure.assertHasDescription("Execution failed for task ':myTask'.") .assertHasResolution('resolution1') }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 3.5K bytes - Viewed (0)