Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 59 for forTask (0.18 sec)

  1. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/ValidatePluginsPart1IntegrationTest.groovy

                error(annotationInvalidInContextConfig { annotation(ann.simpleName).type('MyTask').property('options.nestedThing').forTask() }, 'validation_problems', 'annotation_invalid_in_context'),
                error(annotationInvalidInContextConfig { annotation(ann.simpleName).type('MyTask').property('thing').forTask() }, 'validation_problems', 'annotation_invalid_in_context')
            ])
    
            and:
            verifyAll(receivedProblem(0)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r48/PhasedBuildActionCrossVersionSpec.groovy

            result.assertTasksExecuted(":help")
    
            where:
            description                 | action
            "empty array of task names" | { BuildActionExecuter b -> b.forTasks() }
            "empty list of task names"  | { BuildActionExecuter b -> b.forTasks([]) }
        }
    
        def "#description means run default tasks when they are defined"() {
            file('build.gradle') << """
                defaultTasks = ["thing"]
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r65/ToolingApiShutdownCrossVersionSpec.groovy

            ProjectConnection connection2 = connector.connect()
    
            def build = connection1.newBuild()
            build.forTasks('hang')
            build.run(resultHandler)
    
            def build2 = connection2.newBuild()
            build2.forTasks('hang')
            build2.run(resultHandler)
    
            sync.waitForAllPendingCalls(resultHandler)
            then:
            assertNumberOfRunningDaemons(2)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/TaskProgressCrossVersionSpec.groovy

            def events = ProgressEvents.create()
            withConnection {
                ProjectConnection connection ->
                    connection.model(BuildInvocations).forTasks('assemble').addProgressListener(events, EnumSet.of(OperationType.TASK)).get()
            }
    
            then: "task progress events must be forwarded to the attached listeners"
            !events.tasks.empty
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r76/BuildPhaseOperationEventCrossVersionTest.groovy

            setupProject()
    
            when:
            def events = ProgressEvents.create()
            withConnection {
                it.newBuild().forTasks(taskName)
                    .addProgressListener(events, OperationType.BUILD_PHASE)
                    .run()
            }
    
            then:
            def progressEvents = events.getAll()
            progressEvents.size() == 6
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 10:41:50 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top