[CLI] Restore K2JVMCompilerArguments.classpath and javaModulePath
to support IDEs < 2023.2 Reverts: -9dcd40d7b7-fb66764c4dKTIJ-25227
This commit is contained in:
committed by
Space Team
parent
7fe3c5c423
commit
5d0bf2de24
@@ -181,7 +181,7 @@ class KotlinFacetSettings {
|
||||
if (compilerSettings != null) {
|
||||
parseCommandLineArguments(compilerSettings.additionalArgumentsAsList, this)
|
||||
}
|
||||
if (this is K2JVMCompilerArguments) this.classpath = null
|
||||
if (this is K2JVMCompilerArguments) this.classpath = ""
|
||||
}
|
||||
} else null
|
||||
}
|
||||
|
||||
@@ -230,7 +230,7 @@ fun CommonCompilerArguments.convertPathsToSystemIndependent() {
|
||||
when (this) {
|
||||
is K2JVMCompilerArguments -> {
|
||||
destination = destination?.let(FileUtilRt::toSystemIndependentName)
|
||||
classpath?.forEachIndexed { index, s -> classpath!![index] = FileUtilRt.toSystemIndependentName(s) }
|
||||
classpath = classpath?.let(FileUtilRt::toSystemIndependentName)
|
||||
jdkHome = jdkHome?.let(FileUtilRt::toSystemIndependentName)
|
||||
kotlinHome = kotlinHome?.let(FileUtilRt::toSystemIndependentName)
|
||||
friendPaths?.forEachIndexed { index, s -> friendPaths!![index] = FileUtilRt.toSystemIndependentName(s) }
|
||||
|
||||
@@ -34,7 +34,7 @@ class CompilerArgumentsSerializationTest {
|
||||
@Test
|
||||
fun testLongClasspathArgumentJVM() {
|
||||
doSerializeDeserializeAndCompareTest<K2JVMCompilerArguments> {
|
||||
classpath = generateSequence { generateRandomString(50) }.take(10).toList().toTypedArray()
|
||||
classpath = generateSequence { generateRandomString(50) }.take(10).toList().joinToString(File.pathSeparator)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -184,4 +184,4 @@ class CompilerArgumentsSerializationTest {
|
||||
.map(charPool::get)
|
||||
.joinToString("")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user