Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 105 for forTask (0.16 sec)

  1. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/accessors/Emitter.kt

        when (this) {
            is Accessor.ForExtension -> importsRequiredBy(spec.receiver, spec.type)
            is Accessor.ForConvention -> importsRequiredBy(spec.receiver, spec.type)
            is Accessor.ForTask -> importsRequiredBy(spec.type)
            is Accessor.ForContainerElement -> importsRequiredBy(spec.receiver, spec.type)
            else -> emptyList()
        }
    }
    
    
    private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 13:09:46 UTC 2024
    - 7K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/execution/plan/TaskNodeFactory.java

                    node = new LocalTaskNode((TaskInternal) task, new DefaultWorkValidationContext(typeOriginInspectorFactory.forTask(task)), resolveMutationsNodeFactory);
                } else {
                    node = TaskInAnotherBuild.of((TaskInternal) task, workGraphController);
                }
                nodes.put(task, node);
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r76/TestLauncherTaskExecutionCrossVersionSpec.groovy

            launchTestWithTestFilter { tl ->
                tl.forTasks(':help')
            }
    
            then:
            !taskExecuted(':help')
        }
    
        def "can execute task"() {
            when:
            launchTestWithTestFilter { tl ->
                tl.forTasks(':help')
            }
    
            then:
            taskExecuted(':help')
        }
    
        def "default task is executed when forTasks() receives empty task list"() {
            setup:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  4. platforms/ide/ide-plugins/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r54/RunEclipseSynchronizationTasksCrossVersionSpec.groovy

                    .buildFinished(new LoadEclipseModel(), buildFinishedHandler)
                    .build()
                    .setStandardOutput(out)
                    .forTasks()
                    .run()
            }
    
            then:
            taskExecuted(out, ":foo")
        }
    
        def "can use task reference in sync task list"() {
            setup:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. platforms/ide/ide-plugins/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r54/RunEclipseAutoBuildTasksCrossVersionSpec.groovy

            withConnection { connection ->
                connection.action().projectsLoaded(new TellGradleToRunAutoBuildTasks(), projectsLoadedHandler)
                    .build()
                    .setStandardOutput(out)
                    .forTasks()
                    .run()
            }
    
            then:
            taskExecuted(out, ":foo")
        }
    
        def "can use task reference in sync task list"() {
            setup:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/DefaultPhasedBuildActionExecuterTest.groovy

                assert params.tasks == ['a']
                return null
            }
        }
    
        def "forTasks sets empty list correctly"() {
            when:
            executer.forTasks([])
    
            then:
            executer.operationParamsBuilder.tasks == []
    
            when:
            executer.forTasks(Collections.emptySet())
    
            then:
            executer.operationParamsBuilder.tasks == []
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 6K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r35/RunTasksBeforeRunActionCrossVersion.groovy

            withConnection {
                it.action(new SimpleAction())
                    .forTasks([])
                    .run()
            }
    
            then:
            assertHasBuildSuccessfulLogging()
            result.assertTasksExecuted(":thing")
        }
    
        @TargetGradleVersion(">=3.0 <3.5")
        def "BuildExecuter.forTasks() should fail when it is not supported by target"() {
            when:
            withConnection {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/DefaultBuildLauncher.java

        }
    
        @Override
        public BuildLauncher forTasks(String... tasks) {
            operationParamsBuilder.setTasks(Arrays.asList(tasks));
            return this;
        }
    
        @Override
        public BuildLauncher forTasks(Task... tasks) {
            forTasks(Arrays.asList(tasks));
            return this;
        }
    
        @Override
        public BuildLauncher forTasks(Iterable<? extends Task> tasks) {
            forLaunchables(tasks);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:05 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/RuleTaskExecutionIntegrationTest.groovy

            when:
            buildScript """
                apply from: "fooTask.gradle"
                task check {
                    doLast {
                        assert getTasksByName("foo", false).toList().first().name == "foo"
                    }
                }
            """
    
            file("fooTask.gradle") << """
                model {
                    tasks { create("foo") }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r12rc1/BuildModelCrossVersionSpec.groovy

            where:
            description                 | action
            "no task names specified"   | { ModelBuilder b -> }
            "empty array of task names" | { ModelBuilder b -> b.forTasks() }
            "empty list of task names"  | { ModelBuilder b -> b.forTasks([]) }
        }
    
        def "#description means do not run any tasks even when build logic injects tasks to execute"() {
            file('build.gradle') << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3.1K bytes
    - Viewed (0)
Back to top