public class BuildLogUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static @NotNull LogEntry |
convertSpecsLogToLogEntry(@Nullable String rawLogEntry)
Converts a line from a specs execution log file into a LogEntry object
|
static @NotNull LogEntry |
convertToLogEntry(@Nullable String fileEntry)
Converts a line from a file back into a LogEntry object
|
static String |
convertToLogFileEntry(@NotNull LogEntry logEntry)
Convert the specified LogEntry object into a string to be written to a log file
|
static @NotNull Class<? extends LogEntry> |
getLogEntryType(@NotNull String logLine)
Return the specific type of
LogEntry for the given log line. |
static boolean |
isSpecsLogEntryWithDate(@NotNull String[] split) |
static void |
sendFileThroughLogger(@NotNull File file,
@NotNull BuildLogger buildLogger) |
static void |
skipLines(int numLogs,
int totalLines,
org.apache.commons.io.LineIterator lineIterator)
Skips lines until only
numLogs |
static @NotNull String[] |
splitLogEntry(@Nullable String fileEntry) |
static @NotNull String[] |
splitSpecsLogEntry(@Nullable String rawLogEntry) |
public static String convertToLogFileEntry(@NotNull @NotNull LogEntry logEntry)
logEntry - the LogEntry to be written@NotNull public static @NotNull Class<? extends LogEntry> getLogEntryType(@NotNull @NotNull String logLine)
LogEntry for the given log line.@NotNull public static @NotNull LogEntry convertToLogEntry(@Nullable @Nullable String fileEntry)
fileEntry - to be converted@NotNull public static @NotNull LogEntry convertSpecsLogToLogEntry(@Nullable @Nullable String rawLogEntry)
rawLogEntry - specs execution log line to be convertedpublic static boolean isSpecsLogEntryWithDate(@NotNull
@NotNull String[] split)
@Internal @NotNull public static @NotNull String[] splitLogEntry(@Nullable @Nullable String fileEntry)
@Internal @NotNull public static @NotNull String[] splitSpecsLogEntry(@Nullable @Nullable String rawLogEntry)
public static void sendFileThroughLogger(@NotNull
@NotNull File file,
@NotNull
@NotNull BuildLogger buildLogger)
throws IOException
IOExceptionpublic static void skipLines(int numLogs,
int totalLines,
org.apache.commons.io.LineIterator lineIterator)
numLogs remains in the give lineIterator.Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.