Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for withStdinPipe (0.61 sec)

  1. testing/integ-test/src/integTest/groovy/org/gradle/integtests/StdioIntegrationTest.groovy

                if (!line) {
                    break
                }
                print "[$line]"
            }
        }
    }
    '''
            executer.withStdinPipe(new PipedOutputStream() {
                @Override
                void connect(PipedInputStream snk) throws IOException {
                    super.connect(snk)
                    write(TextUtil.toPlatformLineSeparators("abc\n123").bytes)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 30 05:02:18 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheStandardStreamsIntegrationTest.groovy

                        }
                        ${outputStream}.println("Hello, " + name);
                    }
                }
            """
        }
    
        def withStdInContents(String message) {
            executer.withStdinPipe(new PipedOutputStream() {
                @Override
                synchronized void connect(PipedInputStream snk) throws IOException {
                    super.connect(snk)
                    write(message.bytes)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  3. platforms/enterprise/enterprise/src/integTest/groovy/org/gradle/internal/enterprise/DevelocityPluginConfigurationCachingIntegrationTest.groovy

            then:
            output.contains("response: false")
        }
    
        private void runInteractive(String task, String answer) {
            executer.withForceInteractive(true)
            executer.withStdinPipe()
            executer.withTasks(task, "--configuration-cache")
            def handle = executer.start()
            ConcurrentTestUtil.poll(60) {
                assert handle.standardOutput.contains("there? [yes, no]")
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 10:49:16 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/ForkingGradleHandle.java

            return this;
        }
    
        private void requireStdinPipeFor(String method) {
            if (stdinPipe == null) {
                throw new UnsupportedOperationException("Handle must be started using GradleExecuter.withStdinPipe() to use " + method);
            }
        }
    
        @Override
        public GradleHandle abort() {
            getExecHandle().abort();
            return this;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top