Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for setStandardOutput (0.23 sec)

  1. platforms/ide/ide-plugins/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r54/RunEclipseSynchronizationTasksCrossVersionSpec.groovy

                connection.action().projectsLoaded(new TellGradleToRunSyncTasks(), projectsLoadedHandler)
                    .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)
  2. platforms/ide/ide-plugins/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r54/RunEclipseAutoBuildTasksCrossVersionSpec.groovy

            when:
            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)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/fixtures/ExternalProcessFixture.groovy

                    setStandardOutput(baos)
                """
        }
    
        private String getGroovyKotlinJavaexecSpec() {
            return """
                    mainClass.set("${TestJavaMain.class.name}")
                    classpath("${TextUtil.escapeString(TestJavaMain.classLocation)}")
                    args("Hello", "from", "Java")
                    setStandardOutput(baos)
                """
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r56/ClosedProjectSubstitutionCrossVersionSpec.groovy

                    .buildFinished(new LoadEclipseModel(workspace), buildFinishedHandler)
                    .build()
                    .setStandardOutput(out)
                    .forTasks()
                    .run()
            }
    
            then:
            def child2 = buildFinishedHandler.result.children.find { it.name == "child2" }
            child2.projectDependencies.isEmpty()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r35/BuildEnvironmentCrossVersionSpec.groovy

            when:
            ByteArrayOutputStream out = new ByteArrayOutputStream()
            withConnection { ProjectConnection connection ->
                connection.newBuild().setEnvironmentVariables(["var": "val"]).setStandardOutput(out).forTasks('printEnv').run()
            }
    
            then:
            out.toString().contains("<${["var": "val"]}>")
        }
    
        @TargetGradleVersion(">=4.11")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/fixtures/ToolingApiSpec.groovy

                def args = executer.allArgs
                args.remove("--no-daemon")
    
                model = connection.model(type)
                    .forTasks(tasks)
                    .withArguments(args)
                    .setStandardOutput(new TeeOutputStream(output, System.out))
                    .setStandardError(new TeeOutputStream(error, System.err))
                    .get()
                OutputScrapingExecutionResult.from(output.toString(), error.toString())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r35/RunTasksBeforeRunActionCrossVersion.groovy

        def "can run tasks"() {
            when:
            def stdOut = new ByteArrayOutputStream()
            withConnection {
                it.action(new SimpleAction())
                    .forTasks("hello", "bye")
                    .setStandardOutput(stdOut)
                    .run()
            }
    
            then:
            assert stdOut.toString().contains("hello")
            assert stdOut.toString().contains("bye")
        }
    
    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/crossVersionTest/groovy/org/gradle/integtests/tooling/r85/ProblemProgressEventCrossVersionTest.groovy

            withConnection { connection ->
                connection.newBuild()
                    .forTasks(":ba")
                    .addProgressListener(listener)
                    .setStandardError(System.err)
                    .setStandardOutput(System.out)
                    .addArguments("--info")
                    .run()
            }
    
            then:
            thrown(BuildException)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 24 06:47:12 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. build-logic/documentation/src/main/groovy/gradlebuild/docs/ServeDocs.java

                builder.setExecutable(getJavaLauncher().get().getExecutablePath().getAsFile());
                builder.getMainModule().set("jdk.httpserver");
                builder.setStandardOutput(System.out);
                builder.setErrorOutput(System.err);
                builder.setArgs(Arrays.asList("-p", getPort().get(), "-d", getDocsDirectory().get().getAsFile().getAbsolutePath()));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 12:38:47 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/fixtures/ToolingApiBackedGradleExecuter.groovy

            usingToolingConnection(workingDir) { connection ->
                connection.newBuild()
                    .withArguments(args)
                    .addJvmArguments(jvmArgs)
                    .setStandardOutput(new TeeOutputStream(output, System.out))
                    .setStandardError(new TeeOutputStream(error, System.err))
                    .run()
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top