- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for DaemonLogFileUtils (0.27 sec)
-
platforms/core-runtime/daemon-protocol/src/main/java/org/gradle/launcher/daemon/diagnostics/DaemonLogFileUtils.java
import java.nio.file.Files; import java.util.stream.Collectors; import java.util.stream.Stream; /** * Extracted utility methods to parse daemon logs. */ final class DaemonLogFileUtils { private DaemonLogFileUtils() {} /** * Reads the last {@code tailSize} lines of the daemon log file and returns them as a single string. * * @param file the daemon log
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 10:50:51 UTC 2024 - 1.7K bytes - Viewed (0) -
platforms/core-runtime/daemon-protocol/src/test/groovy/org/gradle/launcher/daemon/diagnostics/DaemonLogFileUtilsTest.groovy
def "empty input produces specific output"() { expect: DaemonLogFileUtils.tail(log(""), 10) == "<<empty>>" } def "returns last line if the limit is one"() { given: def logFile = log("""\ line1 line2 line3""") expect: DaemonLogFileUtils.tail(logFile, 1) == "line3" } def "input-ending eoln is ignored"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 10:50:51 UTC 2024 - 2.2K bytes - Viewed (0) -
platforms/core-runtime/daemon-protocol/src/main/java/org/gradle/launcher/daemon/diagnostics/DaemonDiagnostics.java
return "{" + "pid=" + pid + ", daemonLog=" + daemonLog + '}'; } private String tailDaemonLog() { try { String tail = DaemonLogFileUtils.tail(getDaemonLog(), TAIL_SIZE); return formatTail(tail); } catch (IOException e) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 10:50:51 UTC 2024 - 2.2K bytes - Viewed (0)