[Gradle IT] Fixed regex for extracting task log on Windows

#KT-51553 Ready for Review
This commit is contained in:
Dmitrii Krasnov
2023-10-02 17:01:42 +02:00
committed by Space Team
parent a2b688eb31
commit e63e4b17b7
@@ -23,13 +23,14 @@ private fun taskOutputRegexForDebugLog(
@Language("RegExp") @Language("RegExp")
private fun taskOutputRegexForInfoLog( private fun taskOutputRegexForInfoLog(
taskName: String, taskName: String,
) = """ ) =
^\s*$ """
^> Task $taskName$ ^\s*$\r?
([\s\S]+?) ^> Task $taskName$\r?
^\s*$ ([\s\S]+?)\r?
^\s*$\r?
""".trimIndent() """.trimIndent()
.toRegex(RegexOption.MULTILINE) .toRegex(RegexOption.MULTILINE)
/** /**
* Gets the output produced by a specific task during a Gradle build. * Gets the output produced by a specific task during a Gradle build.