CLI: add an extra MessageRenderer parameter to compiler exec

Is supposed to be used instead of the "-tags" CLI argument
This commit is contained in:
Alexander Udalov
2014-07-23 16:18:10 +04:00
parent 6258e08011
commit 4a7dc25406
4 changed files with 17 additions and 7 deletions
@@ -17,7 +17,6 @@
package org.jetbrains.jet.compiler.runner;
import com.intellij.util.Function;
import kotlin.Function1;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.jet.cli.common.messages.MessageCollector;
@@ -124,7 +123,7 @@ public class CompilerRunnerUtil {
: getOrCreateClassLoader(environment.getKotlinPaths(), messageCollector);
Class<?> kompiler = Class.forName(compilerClassName, true, loader);
Method exec = kompiler.getMethod("exec", PrintStream.class, String[].class);
Method exec = kompiler.getMethod("execAndOutputHtml", PrintStream.class, String[].class);
return exec.invoke(kompiler.newInstance(), out, arguments);
}