@@ -90,14 +90,14 @@ object CompilerRunnerUtil {
|
|||||||
environment: JpsCompilerEnvironment,
|
environment: JpsCompilerEnvironment,
|
||||||
out: PrintStream
|
out: PrintStream
|
||||||
): Any? = withCompilerClassloader(environment) { classLoader ->
|
): Any? = withCompilerClassloader(environment) { classLoader ->
|
||||||
val kompiler = Class.forName(compilerClassName, true, classLoader)
|
val compiler = Class.forName(compilerClassName, true, classLoader)
|
||||||
val exec = kompiler.getMethod(
|
val exec = compiler.getMethod(
|
||||||
"execAndOutputXml",
|
"execAndOutputXml",
|
||||||
PrintStream::class.java,
|
PrintStream::class.java,
|
||||||
Class.forName("org.jetbrains.kotlin.config.Services", true, classLoader),
|
Class.forName("org.jetbrains.kotlin.config.Services", true, classLoader),
|
||||||
Array<String>::class.java
|
Array<String>::class.java
|
||||||
)
|
)
|
||||||
exec.invoke(kompiler.newInstance(), out, environment.services, arguments)
|
exec.invoke(compiler.newInstance(), out, environment.services, arguments)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun invokeClassesFqNames(
|
fun invokeClassesFqNames(
|
||||||
|
|||||||
Reference in New Issue
Block a user