Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 73 for setStandardOutput (0.24 sec)

  1. platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/ToolingApiTestCommon.groovy

            def stdOut = new ByteArrayOutputStream()
            tapi.withConnection { ProjectConnection connection ->
                connection.newBuild()
                    .withArguments(arguments)
                    .setStandardOutput(stdOut)
                    .setStandardError(stdOut)
                    .run()
            }
            stdOut
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/api/tasks/AbstractExecTask.java

        public InputStream getStandardInput() {
            return execSpec.getStandardInput();
        }
    
        /**
         * {@inheritDoc}
         */
        @Override
        public T setStandardOutput(OutputStream outputStream) {
            execSpec.setStandardOutput(outputStream);
            return taskType.cast(this);
        }
    
        /**
         * {@inheritDoc}
         */
        @Internal
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 08 18:31:36 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r84/TestLauncherCompositeBuildCrossVersionTest.groovy

                            .setStandardOutput(tee)
                            .run()
                        break
                    case LauncherApi.BUILD_LAUNCHER:
                        connection.newBuild()
                            .forTasks(task, "--tests", testClass)
                            .setStandardOutput(tee)
                            .run()
                        break
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/ContinuousBuildCrossVersionSpec.groovy

            GradleProject project = withConnection { ProjectConnection connection ->
                connection.model(GradleProject.class)
                    .withArguments("--continuous")
                    .setStandardOutput(stdout)
                    .setStandardError(stderr)
                    .get()
            }
    
            then:
            project != null
            def logOutput = stdout.toString()
            !logOutput.contains(waitingMessage)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/TestFailureSpecification.groovy

                def build = connection.newBuild()
                    .addProgressListener(progressEventCollector)
                    .forTasks('test')
                if (enableStdoutProxying) {
                    build.setStandardOutput(System.out).setStandardError(System.err)
                }
                build.run()
            }
        }
    
        protected static class TestFailureEventCollector implements ProgressListener {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Nov 10 17:52:51 UTC 2023
    - 4K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r89/ProblemProgressEventCrossVersionTest.groovy

            withConnection { connection ->
                connection.newBuild()
                    .forTasks(":ba")
                    .addProgressListener(listener)
                    .setStandardError(System.err)
                    .setStandardOutput(System.out)
                    .addArguments("--info")
                    .run()
            }
    
            then:
            thrown(BuildException)
            listener.problems.size() == 2
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  9. build-logic/performance-testing/src/main/groovy/gradlebuild/performance/reporter/PerformanceReporter.groovy

                    spec.setClasspath(classpath)
    
                    spec.ignoreExitValue = true
                    spec.setErrorOutput(output)
                    spec.setStandardOutput(output)
                }
            })
    
            String message = output.toString().readLines().findAll { line ->
                ! [
                    // WARNING: All illegal access operations will be denied in a future release
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 22 15:27:22 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  10. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/DefaultCommandLineToolInvocationWorker.java

            StreamByteBuffer errOutput = new StreamByteBuffer();
            StreamByteBuffer stdOutput = new StreamByteBuffer();
            toolExec.setErrorOutput(errOutput.getOutputStream());
            toolExec.setStandardOutput(stdOutput.getOutputStream());
    
            try {
                toolExec.execute();
                invocation.getLogger().operationSuccess(description.getDisplayName(), combineOutput(stdOutput, errOutput));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.9K bytes
    - Viewed (0)
Back to top