Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 105 for forTask (0.38 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r68/CompositeBuildBuildActionExecuterCrossVersionSpec.groovy

            toolingApi.withConnection { ProjectConnection connection ->
                def buildAction = connection.action(new LoadCompositeModel(GradleProject))
                collectOutputs(buildAction)
                buildAction.forTasks([':other-build:sub:doSomething'])
                buildAction.run()
            }
    
            then:
            stdout.toString().contains("do something")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r75/CustomTestTaskProgressEventCrossVersionTest.groovy

            ValidatingProgressEventListener validatingListener = new ValidatingProgressEventListener()
    
            when:
            withConnection {
                it.newBuild().forTasks('myTestTask').addProgressListener(validatingListener).run()
            }
    
            then:
            validatingListener.receivedCustomTestTaskProgressEvents()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 08:42:44 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r32/NonSerializableExceptionCrossVersionSpec.groovy

            when:
            createBuildFileForConfigurationPhaseCheck(exceptionNestingLevel)
            withConnection { connection ->
                connection.newBuild().forTasks("assemble").run()
            }
    
            then:
            def e = thrown(GradleConnectionException)
            def exceptionString = getStackTraceAsString(e)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/DefaultBuildActionExecuterTest.groovy

            ResultHandlerVersion1<GradleProject> adaptedHandler
            ResultHandler<GradleProject> handler = Mock()
            GradleProject result = Mock()
    
            when:
            executer.forTasks('a', 'b').run(handler)
    
            then:
            1 * asyncConnection.run(!null, !null) >> {args ->
                ConsumerAction<GradleProject> action = args[0]
                action.run(connection)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r15/ToolingApiConfigurationOnDemandCrossVersionSpec.groovy

            file("impl/build.gradle") << "task bar(dependsOn: ':api:foo')"
            file("other/build.gradle") << "assert false: 'should not be evaluated'"
    
            when:
            withBuild { it.forTasks(":impl:bar") }
    
            then:
            noExceptionThrown()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2K bytes
    - Viewed (0)
  6. subprojects/diagnostics/src/main/java/org/gradle/api/tasks/diagnostics/internal/SingleProjectTaskReportModel.java

    import java.util.Collection;
    import java.util.Comparator;
    import java.util.Set;
    
    public class SingleProjectTaskReportModel implements TaskReportModel {
    
        public static SingleProjectTaskReportModel forTasks(Collection<? extends Task> tasks, TaskDetailsFactory factory) {
            final SetMultimap<String, TaskDetails> groups = TreeMultimap.create(String::compareToIgnoreCase, Comparator.comparing(TaskDetails::getPath));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 12 07:52:06 UTC 2021
    - 2K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r23/ModelBuilderCrossVersionSpec.groovy

                task alpha() { doLast { throw new RuntimeException() } }
            """
    
            when:
            BuildEnvironment model = toolingApi.withConnection {
                it.model(BuildEnvironment)
                    .forTasks(new String[0])
                    .get()
            }
    
            then:
            model != null
            result.assertTasksExecutedInOrder()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r82/TestLauncherTaskExecutionCrossVersionSpec.groovy

                        System.out.println 'foo'
                    }
                }
            """
    
            when:
            withConnection {
                TestLauncher testLauncher = newTestLauncher()
                testLauncher.forTasks(':foo').run()
            }
    
            then:
            result.assertTaskExecuted(':foo')
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl-tooling-builders/src/testFixtures/groovy/org/gradle/kotlin/dsl/tooling/fixtures/KotlinScriptModelParameters.groovy

            } else {
                modelBuilder.setJvmArguments([KotlinDslModelsParameters.STRICT_CLASSPATH_MODE_SYSTEM_PROPERTY_DECLARATION])
            }
    
            if (explicitlyRequestPreparationTasks) {
                modelBuilder.forTasks(KotlinDslModelsParameters.PREPARATION_TASK_NAME)
            }
            def correlationId = newCorrelationId()
    
            def arguments =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 21 09:28:30 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r68/CompositeBuildModelBuilderCrossVersionSpec.groovy

            toolingApi.withConnection { ProjectConnection connection ->
                ModelBuilder<GradleProject> modelBuilder = connection.model(GradleProject.class)
                collectOutputs(modelBuilder)
                modelBuilder.forTasks([':other-build:sub:doSomething'])
                modelBuilder.get()
            }
    
            then:
            stdout.toString().contains("do something")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top