Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for collectOutput (0.13 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r73/DependencyArtifactDownloadProgressEventCrossVersionTest.groovy

            modules.useLargeJars()
    
            when:
            def events = ProgressEvents.create()
            withConnection { ProjectConnection connection ->
                def build = connection.newBuild()
                collectOutputs(build)
                build.addProgressListener(events, OperationType.FILE_DOWNLOAD)
                    .run()
            }
    
            then:
            events.operations.size() == 8
            events.trees == events.operations
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r48/PhasedBuildActionCrossVersionSpec.groovy

                    .projectsLoaded(new FailAction(), projectsLoadedHandler)
                    .buildFinished(new ActionShouldNotBeCalled(), buildFinishedHandler)
                    .build()
    
                collectOutputs(action)
                action.run()
            }
    
            then:
            BuildActionFailureException e = thrown()
            e.message == "The supplied phased action failed with an exception."
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r86/StreamingBuildActionCrossVersionTest.groovy

                models.add(model)
                finished.countDown()
            } as ResultHandler
    
            withConnection {
                def builder = it.action(new ModelStreamingBuildAction())
                collectOutputs(builder)
                builder.setStreamedValueListener(listener)
                builder.run(handler)
                finished.await()
            }
    
            then:
            models.size() == 3
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 07 03:20:59 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r73/DeferredConfigurationCrossVersionSpec.groovy

        def "does not configure build when action does not query any models"() {
            setupBuild()
    
            when:
            def model = withConnection {
                def executer = action(new NoOpAction())
                collectOutputs(executer)
                executer.run()
            }
    
            then:
            model == "result"
    
            and:
            assertHasConfigureSuccessfulLogging()
            result.assertNotOutput(prefix)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r68/CompositeBuildTaskExecutionCrossVersionSpec.groovy

            when:
            withConnection { connection ->
                TestLauncher launcher = connection.newTestLauncher().withTests(descriptor)
                collectOutputs(launcher)
                launcher.run()
            }
    
            then:
            outputContains("BUILD SUCCESSFUL")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r50/ProjectStateLockingCrossVersionTest.groovy

                """
            }
    
            when:
            withConnection {
                def executer = action(new FetchIdeaProject())
                executer.withArguments("--warning-mode", "all")
                collectOutputs(executer)
                executer.run()
            }
    
            then:
            !stdout.toString().contains("was resolved without accessing the project in a safe manner")
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r68/CompositeBuildBuildActionExecuterCrossVersionSpec.groovy

                }
            """
    
            when:
            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)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r48/CancellationCrossVersionSpec.groovy

                def build = action.build()
                build.withCancellationToken(cancel.token())
                collectOutputs(build)
                build.run(resultHandler)
                sync.waitForAllPendingCalls(resultHandler)
                cancel.cancel()
                sync.releaseAll()
                resultHandler.finished()
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r73/DeprecationsCrossVersionSpec.groovy

                    }
                }
            """
    
            when:
            withConnection {
                def builder = it.model(List)
                builder.withArguments("--parallel")
                collectOutputs(builder)
                return builder.get()
            }
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 20:23:18 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r68/CompositeBuildModelBuilderCrossVersionSpec.groovy

                }
            """
    
            when:
            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