fix tests on Windows agents: report canonical paths to conflicting Kotlin runtimes

This commit is contained in:
Dmitry Jemerov
2016-01-21 11:23:12 +01:00
parent ad24092fd1
commit 51799ef70e
2 changed files with 2 additions and 2 deletions
@@ -410,7 +410,7 @@ object KotlinToJVMBytecodeCompiler {
return if (versionIndex >= 0) substring(0, versionIndex) else this
}
val runtimes = jvmClasspathRoots.filter { it.name == PathUtil.KOTLIN_JAVA_RUNTIME_JAR && it.exists() }
val runtimes = jvmClasspathRoots.map { it.canonicalFile }.filter { it.name == PathUtil.KOTLIN_JAVA_RUNTIME_JAR && it.exists() }
val runtimeVersions = runtimes.map {
JarUtil.getJarAttribute(it, Attributes.Name.IMPLEMENTATION_VERSION).orEmpty().removeIdeaVersionSuffix()