- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for splitOnFirstMatchingLine (0.15 sec)
-
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/OutputScrapingExecutionFailure.java
// Find failure section Pair<LogContent, LogContent> match = withoutDebug.splitOnFirstMatchingLine(FAILURE_PATTERN); if (match == null) { // Not present in output, check error output. match = LogContent.of(error).ansiCharsToPlainText().removeDebugPrefix().splitOnFirstMatchingLine(FAILURE_PATTERN); if (match != null) { match = Pair.of(withoutDebug, match.getRight());
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 09:21:25 UTC 2024 - 12.5K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/LogContent.java
* * @return a pair containing (content-before-matching-line, content-from-matching-line) or null if no match. */ public @Nullable Pair<LogContent, LogContent> splitOnFirstMatchingLine(Pattern pattern) { for (int i = 0; i < lines.size(); i++) { String line = lines.get(i); if (pattern.matcher(line).matches()) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 8.6K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/configurationcache/ConfigurationCacheProblemsFixture.groovy
def tooManyProblemsPattern = Pattern.compile("plus (\\d+) more problems. Please see the report for details.") def output = LogContent.of(text) def match = output.splitOnFirstMatchingLine(headerPattern) if (match == null) { throw new AssertionFailedError("""Could not find problems summary in output: ${text} """) } def summary = match.right
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 22.8K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/OutputScrapingExecutionResult.java
// Split out up the output into main content and post build content LogContent filteredOutput = this.output.ansiCharsToPlainText().removeDebugPrefix(); Pair<LogContent, LogContent> match = filteredOutput.splitOnFirstMatchingLine(BUILD_RESULT_PATTERN); if (match == null) { this.mainContent = filteredOutput; this.postBuild = LogContent.empty(); } else { this.mainContent = match.getLeft();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 19K bytes - Viewed (0)