Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for readAndForwardText (0.27 sec)

  1. platforms/core-runtime/client-services/src/test/groovy/org/gradle/internal/daemon/client/clientinput/DaemonClientInputForwarderTest.groovy

            def event = Stub(PromptOutputEvent)
            _ * event.convert("def") >> PromptOutputEvent.PromptResult.response(12)
    
            when:
            userInputReceiver.readAndForwardText(event)
            source << toPlatformLineSeparators("def\njkl\n")
    
            then:
            receiveUserResponse "12"
    
            when:
            userInputReceiver.readAndForwardStdin(new ReadStdInEvent())
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:05 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/DefaultUserInputReceiver.java

         */
        public void attachConsole(OutputEventListener console) {
            this.console = console;
        }
    
        @Override
        public void readAndForwardText(final PromptOutputEvent event) {
            UserInputReceiver userInput = getDelegate();
            userInput.readAndForwardText(new UserInputReceiver.Normalizer() {
                @Nullable
                @Override
                public String normalize(String text) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:05 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. platforms/core-runtime/client-services/src/main/java/org/gradle/internal/daemon/client/clientinput/DaemonClientInputForwarder.java

                        buffer = new char[16 * 1024];
                    }
                    int nread;
                    try {
                        // Read input as text rather than bytes, so that readAndForwardText() below can also read lines of text
                        nread = reader.read(buffer);
                    } catch (IOException e) {
                        throw UncheckedException.throwAsUncheckedException(e);
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:53:31 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/UserInputReceiver.java

         * Does not block waiting for the input.
         */
        void readAndForwardText(Normalizer normalizer);
    
        /**
         * Requests that bytes should be read from this process' stdin and forwarded to the daemon.
         * Does not block waiting for the input.
         */
        void readAndForwardStdin();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 30 05:03:08 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  5. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/AbstractUserInputRenderer.java

            // This is only a problem for tooling; for a human (the audience for this feature) this makes no difference.
            userInput.readAndForwardText(event);
            handlePrompt(event);
        }
    
        private void handleUserInputRequestEvent() {
            startInput();
            paused = true;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 30 05:02:18 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/GlobalUserInputReceiver.java

         * Does not block waiting for the input.
         *
         * @param event Specifies how to validate and normalize the text.
         */
        void readAndForwardText(PromptOutputEvent event);
    
        /**
         * Requests that bytes should be read from this process' stdin, and forwarded to the daemon.
         */
        void readAndForwardStdin(ReadStdInEvent event);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 30 05:02:18 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  7. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/UserInputConsoleRendererTest.groovy

            when:
            renderer.onOutput(prompt)
    
            then:
            1 * console.getBuildOutputArea() >> textArea
            1 * prompt.render(textArea)
            1 * console.flush()
            1 * userInput.readAndForwardText(prompt)
    
            and:
            0 * console._
            0 * listener.onOutput(_)
            0 * prompt._
            0 * textArea._
            0 * userInput._
            renderer.eventQueue.empty
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 30 05:02:18 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top