Fix deprecated replaceAll and replaceFirst usages in stdlib tests and tools.

This commit is contained in:
Ilya Gorbunov
2015-05-13 23:45:37 +03:00
parent 79a5e0607d
commit 33f5158170
4 changed files with 10 additions and 10 deletions
@@ -105,7 +105,7 @@ abstract class BaseGradleIT {
listOf("/bin/bash", "./gradlew") + tailParameters
}
private fun String.normalize() = this.replaceAll("\r\n", "\n").replaceAll("\n", SYSTEM_LINE_SEPARATOR)
private fun String.normalize() = this.lineSequence().join(SYSTEM_LINE_SEPARATOR)
private fun isWindows(): Boolean {
return System.getProperty("os.name")!!.contains("Windows")