Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 69 for setStandardOutput (0.41 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r76/SystemPropertyPropagationCrossVersionTest.groovy

            withConnection {
                def launcher = newBuild().forTasks('printSystemProperty')
                launcherSpec.delegate = launcher
                launcherSpec()
                launcher.setStandardOutput(out)
                launcher.run()
            }
        }
    
        private boolean hasNoSystemProperty(String key, String value = null) {
            !out.toString().contains("$key=${value ?: ""}")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 06:17:20 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/ToolingApiConnection.groovy

            configurableLauncher.standardOutput = stdout
            configurableLauncher.standardError = stderr
            this.stdout = stdout
            this.stderr = stderr
        }
    
        T setStandardOutput(OutputStream outputStream) {
            configurableLauncher.standardOutput = new TeeOutputStream(outputStream, stdout)
            return configurableLauncher
        }
    
        T setStandardError(OutputStream outputStream) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/sources/process/ProviderCompatibleBaseExecSpec.java

        public InputStream getStandardInput() {
            throw new UnsupportedOperationException("Standard streams cannot be configured for exec output provider");
        }
    
        @Override
        public BaseExecSpec setStandardOutput(OutputStream outputStream) {
            throw new UnsupportedOperationException("Standard streams cannot be configured for exec output provider");
        }
    
        @Override
        public OutputStream getStandardOutput() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/samples/templates/problems-api-usage/sample-ide/src/main/java/org/gradle/sample/SampleIde.java

                // Load the project
                BuildLauncher buildLauncher = connection.newBuild();
                buildLauncher.addArguments("--quiet");
                buildLauncher.setStandardOutput(System.err);
                buildLauncher.setStandardError(System.err);
    
                // Add a problem listener
                ProblemListener.createAndRegister(buildLauncher);
                // Configure the task to be executed
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 20 08:50:13 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r48/PhasedBuildActionCrossVersionSpec.groovy

                connection.action().projectsLoaded(new CustomProjectsLoadedAction(["hello"]), projectsLoadedHandler)
                    .build()
                    .forTasks([])
                    .setStandardOutput(stdOut)
                    .run()
            }
    
            then:
            projectsLoadedHandler.getResult() == "loadingWithTasks"
            stdOut.toString().contains("hello")
        }
    
    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/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/msvcpp/version/CommandLineToolVersionLocator.java

            exec.args(args);
            exec.executable(vswhereBinary.getAbsolutePath());
            exec.setWorkingDir(vswhereBinary.getParentFile());
    
            StreamByteBuffer buffer = new StreamByteBuffer();
            exec.setStandardOutput(buffer.getOutputStream());
            exec.setErrorOutput(NullOutputStream.INSTANCE);
            exec.setIgnoreExitValue(true);
            ExecResult result = exec.execute();
    
            int exitValue = result.getExitValue();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  7. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/metadata/AbstractMetadataProvider.java

            exec.args(args);
            exec.environment(environmentVariables);
            StreamByteBuffer buffer = new StreamByteBuffer();
            StreamByteBuffer errorBuffer = new StreamByteBuffer();
            exec.setStandardOutput(buffer.getOutputStream());
            exec.setErrorOutput(errorBuffer.getOutputStream());
            exec.setIgnoreExitValue(true);
            ExecResult result = exec.execute();
    
            int exitValue = result.getExitValue();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 08 13:16:50 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r87/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: Thu May 30 11:36:58 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/AbstractLongRunningOperation.java

            operationParamsBuilder.addArguments(CollectionUtils.toList(Preconditions.checkNotNull(arguments)));
            return getThis();
        }
    
        @Override
        public T setStandardOutput(OutputStream outputStream) {
            operationParamsBuilder.setStdout(outputStream);
            return getThis();
        }
    
        @Override
        public T setStandardError(OutputStream outputStream) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r86/ProblemProgressEventCrossVersionTest.groovy

            withConnection { connection ->
                connection.newBuild()
                    .forTasks(":ba")
                    .addProgressListener(listener)
                    .setStandardError(System.err)
                    .setStandardOutput(System.out)
                    .addArguments("--info")
                    .run()
            }
    
            then:
            thrown(BuildException)
            listener.problems.isEmpty()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 11:36:58 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top