Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for containsGreeting (0.2 sec)

  1. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/bootstrap/DaemonStartupCommunicationSpec.groovy

            startupInfo.diagnostics.pid == null
        }
    
        def "knows if a message contains a greeting"() {
            expect:
            !comm.containsGreeting("foo")
            comm.containsGreeting(message(null, "id", uuid, 123, addresses, new File("foo")))
    
            when:
            comm.containsGreeting(null)
    
            then:
            thrown(IllegalArgumentException)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/bootstrap/DaemonOutputConsumer.java

                while (scanner.hasNext()) {
                    String line = scanner.nextLine();
                    LOGGER.debug("daemon out: {}", line);
                    printer.println(line);
                    if (startupCommunication.containsGreeting(line)) {
                        break;
                    }
                }
            }
            processOutput = output.toString();
        }
    
        public String getProcessOutput() {
            if (processOutput == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/client/DaemonGreeter.java

        }
    
        public DaemonStartupInfo parseDaemonOutput(String output, List<String> startupArgs) {
            DaemonStartupCommunication startupCommunication = new DaemonStartupCommunication();
            if (!startupCommunication.containsGreeting(output)) {
                throw new GradleException(prepareMessage(output, startupArgs));
            }
            String[] lines = output.split("\n");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 05 22:24:02 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/bootstrap/DaemonOutputConsumerTest.groovy

               It's nice
               !!!
            """
            def process = process(output)
    
            given:
            consumer.startupCommunication = Mock(DaemonStartupCommunication)
            consumer.startupCommunication.containsGreeting({ it.contains "Come visit Krakow" }) >> true
    
            when:
            consumer.connectStreams(process, "cool process", executor)
            consumer.start()
            consumer.stop()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  5. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/bootstrap/DaemonStartupCommunication.java

                return new DaemonStartupInfo(uid, address, new DaemonDiagnostics(daemonLog, pid));
            } catch (IOException e) {
                throw new UncheckedIOException(e);
            }
        }
    
        public boolean containsGreeting(String message) {
            if (message == null) {
                throw new IllegalArgumentException("Unable to detect the daemon greeting because the input message is null!");
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top