Setup JDK roots and initialize JDK_HOME in common core environment

#KT-20167 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2017-09-12 11:34:07 +03:00
parent 373bd5ff17
commit 05dd471404
9 changed files with 83 additions and 56 deletions
@@ -50,7 +50,6 @@ open class KotlinJvmReplService(
) : ReplCompileAction, ReplCheckAction, CreateReplStageStateAction {
protected val configuration = CompilerConfiguration().apply {
addJvmClasspathRoots(PathUtil.getJdkClassesRootsFromCurrentJre())
addJvmClasspathRoots(PathUtil.kotlinPathsForCompiler.let { listOf(it.stdlibPath, it.reflectPath, it.scriptRuntimePath) })
addJvmClasspathRoots(templateClasspath)
put(CommonConfigurationKeys.MODULE_NAME, "kotlin-script")