Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 108 for someTaskB (0.18 sec)

  1. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/configurations/TasksFromDependentProjectsTest.groovy

            [child1, child2, child3].each {
                it.configurations.create "testRuntime"
                it.configurations.create "conf"
                it.tasks.create "buildDependents"
                it.tasks.create "someTask"
            }
    
            when: dep.visitDependencies(context)
    
            then:
            4 * context.getTask() >> child1.tasks["buildDependents"]
            1 * checker.isDependent(child1, "testRuntime", child2) >> false
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FilePropertyLifecycleIntegrationTest.groovy

            buildFile << """
                class SomeTask extends DefaultTask {
                    ${annotation}
                    final RegularFileProperty prop = project.objects.fileProperty()
    
                    @TaskAction
                    void go() {
                        println "value: " + prop.get()
                    }
                }
    
                task show(type: SomeTask) {
                    prop = file("in.txt")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 22.6K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/DeferredTaskFailureIntegrationTest.groovy

            failure.assertHasCause("broken task")
        }
    
        def "fails to get a task by name when it does not match the filtered type"() {
            buildFile << '''
                tasks.register("task1", SomeTask) {
                    println "Configure ${path}"
                }
    
                tasks.create("other") {
                    dependsOn tasks.withType(SomeOtherTask).getByName("task1")
                }
            '''
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:33 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/file/ProjectLayoutIntegrationTest.groovy

            outputContains("build dir 4: " + testDirectory.file("target"))
        }
    
        def "layout is available for injection"() {
            buildFile """
                class SomeTask extends DefaultTask {
                    @Inject
                    ProjectLayout getLayout() { null }
    
                    @TaskAction
                    void go() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 18:31:24 UTC 2023
    - 12.8K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/docs/userguide/troubleshooting/validation_problems.adoc

    ```
    someTask {
        inputFile.from(jar.archivePath)
    }
    ```
    
    The `jar.archivePath` property is of type `File`, which doesn't carry any task dependency.
    It means that if you call `someTask` _after_ `jar` has been called, the task will succeed, but if the jar is removed, for example, the task would fail.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Mar 23 22:37:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/MapPropertyIntegrationTest.groovy

                abstract class SomeTask extends DefaultTask {
                    @Internal
                    abstract MapProperty<String, Long> getProp()
    
                    @TaskAction
                    def go() {
                        prop.set((Map<String, Long>)null)
                        prop.get()
                    }
                }
    
                tasks.register('thing', SomeTask)
            """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 04 15:28:53 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/ConfigurationOnDemandIntegrationTest.groovy

            createDirs("a", "b", "c")
            settingsFile << "include 'a', 'b', 'c'"
            file("a/build.gradle") << """
    task one(type: SomeTask)
    task two(type: SomeTask)
    
    class SomeTask extends DefaultTask {
        @org.gradle.api.tasks.options.Option(description="some value")
        @Input
        String value
    }
    """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 12:57:53 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/DynamicObjectIntegrationTest.groovy

            buildFile '''
                class SomeTask extends DefaultTask {
                }
                class SomeExtension {
                }
    
                SomeTask.metaClass.p1 = 12
                SomeTask.metaClass.m1 = { -> "m1" }
                SomeExtension.metaClass.p2 = 10
                SomeExtension.metaClass.m2 = { String p -> p }
    
                task t(type: SomeTask)
                extensions.add("e", SomeExtension)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:33 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/CrossBuildScriptCachingIntegrationSpec.groovy

                }
                'settings.gradle'(this.settingsWithBuildScriptsUseProjectName('module1', 'module2'))
            }
    
            when:
            fails 'module1:someTask'
    
            then:
            def scripts = scriptDetails()
            scripts.size() == 3
            eachScriptIsUnique(scripts)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 17:32:21 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/PropertyLifecycleIntegrationTest.groovy

        }
    
        def "task @Input property is implicitly finalized when task starts execution"() {
            given:
            buildFile """
                class SomeTask extends DefaultTask {
                    @Input
                    final Property<String> prop = project.objects.property(String)
    
                    @OutputFile
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 04 14:00:52 UTC 2024
    - 15K bytes
    - Viewed (0)
Back to top