31c56d7794
#KT-24991 fixed
10 lines
337 B
Kotlin
Vendored
10 lines
337 B
Kotlin
Vendored
package test
|
|
|
|
import java.io.File
|
|
|
|
val classPathFromProp = System.getProperty("java.class.path")
|
|
|
|
val jarFromProps = classPathFromProp.split(File.pathSeparator).firstOrNull { it.contains("kotlin-compiler") }
|
|
|
|
println(jarFromProps?.let { File(it).name } ?: "kotlin-compiler not found in the java.class.path property: $classPathFromProp")
|