Minor, move ContentRoot and KotlinSourceRoot to module 'cli'

Also move CONTENT_ROOTS from JVMConfigurationKeys to
CLIConfigurationKeys since it's used on all platforms, not just JVM
This commit is contained in:
Alexander Udalov
2018-07-26 19:04:03 +02:00
parent 14b8f4b52b
commit 5da8ce844a
31 changed files with 87 additions and 84 deletions
@@ -121,10 +121,10 @@ class KJVMCompilerImpl : KJVMCompilerProxy {
}
fun addRoot(moduleName: String, file: File) {
if (isModularJava) {
add(JVMConfigurationKeys.CONTENT_ROOTS, JvmModulePathRoot(file))
add(CLIConfigurationKeys.CONTENT_ROOTS, JvmModulePathRoot(file))
add(JVMConfigurationKeys.ADDITIONAL_JAVA_MODULES, moduleName)
} else {
add(JVMConfigurationKeys.CONTENT_ROOTS, JvmClasspathRoot(file))
add(CLIConfigurationKeys.CONTENT_ROOTS, JvmClasspathRoot(file))
}
}
// TODO: implement logic similar to compiler's -no-stdlib (and -no-reflect?)