Files
kotlin-fork/compiler/testData/launcher/classPathPropTest.kts
T
2019-08-28 17:59:12 +02:00

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")