Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for PipedOutputStream (0.24 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. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/AbstractGradleExecuter.java

            return executable;
        }
    
        @Override
        public GradleExecuter withStdinPipe() {
            return withStdinPipe(new PipedOutputStream());
        }
    
        @Override
        public GradleExecuter withStdinPipe(PipedOutputStream stdInPipe) {
            this.stdinPipe = stdInPipe;
            return this;
        }
    
        public InputStream connectStdIn() {
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  3. platforms/core-runtime/client-services/src/test/groovy/org/gradle/internal/daemon/client/clientinput/DaemonClientInputForwarderTest.groovy

    import java.util.concurrent.TimeUnit
    
    import static org.gradle.util.internal.TextUtil.toPlatformLineSeparators
    
    class DaemonClientInputForwarderTest extends ConcurrentSpecification {
        def source = new PipedOutputStream()
        def inputStream = new PipedInputStream(source)
    
        def received = new LinkedBlockingQueue()
        def dispatch = { received << it } as Dispatch
        def userInputReceiver = new DefaultUserInputReceiver()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:05 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/enduser/GradleRunnerConsoleInputEndUserIntegrationTest.groovy

            when:
            file("src/test/groovy/Test.groovy") << functionalTest("""
                // defer sending the answer until prompted
                def stdin = new PipedInputStream()
                def stdinSink = new PipedOutputStream(stdin)
                def stdout = new java.io.Writer() {
                    def buffer = new StringBuilder()
                    def written = false
    
                    void write(char[] cbuf, int off, int len) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 13:00:39 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. 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)
                    close()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top