[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")
private fun taskOutputRegexForInfoLog(
taskName: String,
) = """
^\s*$
^> Task $taskName$
([\s\S]+?)
^\s*$
) =
"""
^\s*$\r?
^> Task $taskName$\r?
([\s\S]+?)\r?
^\s*$\r?
""".trimIndent()
.toRegex(RegexOption.MULTILINE)
.toRegex(RegexOption.MULTILINE)
/**
* Gets the output produced by a specific task during a Gradle build.