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