Revert "Setup JDK roots and initialize JDK_HOME in common core environment"

This reverts commit 05dd4714045494dcc648412t 2ea2179a242991639.
This commit is contained in:
Mikhail Zarechenskiy
2017-09-15 16:47:42 +03:00
parent 05dd471404
commit 11b6382518
9 changed files with 56 additions and 83 deletions
@@ -50,6 +50,7 @@ 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")