Do not include jdks dependencies into run configuration of script

^KT-25187 Fixed
This commit is contained in:
Natalia Selezneva
2019-06-10 12:56:35 +03:00
parent 151c12dd85
commit 213b0a37d1
2 changed files with 4 additions and 1 deletions
@@ -219,7 +219,7 @@ private class ScriptCommandLineState(
val module = scriptVFile.module(environment.project)
if (module != null) {
val orderEnumerator = OrderEnumerator.orderEntries(module).recursively().let {
val orderEnumerator = OrderEnumerator.orderEntries(module).withoutSdk().recursively().let {
if (!ProjectRootsUtil.isInTestSource(scriptVFile, environment.project)) it.productionOnly() else it
}
@@ -39,6 +39,9 @@ class StandaloneScriptRunConfigurationTest : KotlinCodeInsightTestCase() {
programParametersList.checkParameter("-script") { it.contains("simpleScript.kts") }
programParametersList.checkParameter("-kotlin-home") { it == PathUtil.kotlinPathsForIdeaPlugin.homePath.path }
Assert.assertTrue(!programParametersList.contains("-cp"))
}
fun testOnFileRename() {