Do not include jdks dependencies into run configuration of script
^KT-25187 Fixed
This commit is contained in:
+1
-1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user