Class ParserUtils
- java.lang.Object
-
- org.apache.flink.tools.ci.utils.shared.ParserUtils
-
public class ParserUtils extends Object
Parsing utils.
-
-
Constructor Summary
Constructors Constructor Description ParserUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <D> Map<String,D>parsePluginOutput(Stream<String> lines, Pattern executionLinePattern, Function<Iterator<String>,D> blockParser)Iterates over the given lines, identifying plugin execution blocks with the given pattern and parses the plugin output with the given parser.
-
-
-
Method Detail
-
parsePluginOutput
public static <D> Map<String,D> parsePluginOutput(Stream<String> lines, Pattern executionLinePattern, Function<Iterator<String>,D> blockParser)
Iterates over the given lines, identifying plugin execution blocks with the given pattern and parses the plugin output with the given parser.This method assumes that the given pattern matches at most once for each module.
The given pattern must include a
modulegroup that captures the module that the plugin runs on (without the scala suffix!).- Type Parameters:
D- block parser output- Parameters:
lines- maven output linesexecutionLinePattern- pattern that matches plugin executionsblockParser- parser for the plugin block- Returns:
- map containing the parser result for each module
-
-