Don't output full compiler FQ name on -printArgs
This commit is contained in:
@@ -200,7 +200,7 @@ public abstract class CLICompiler<A extends CommonCompilerArguments> {
|
||||
String argumentsAsString = StringUtil.join(argumentsAsList, " ");
|
||||
|
||||
String printArgsMessage = messageRenderer.render(CompilerMessageSeverity.INFO,
|
||||
"Invoking compiler " + getClass().getName() +
|
||||
"Invoking " + getClass().getSimpleName() +
|
||||
" with arguments " + argumentsAsString + freeArgs,
|
||||
CompilerMessageLocation.NO_LOCATION);
|
||||
errStream.println(printArgsMessage);
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
INFO: Invoking compiler org.jetbrains.jet.cli.js.K2JSCompiler with arguments -suppress warnings -printArgs -sourceFiles compiler/testData/cli/js/simple2js.kt,compiler/testData/cli/js/../warnings.kt
|
||||
INFO: Invoking K2JSCompiler with arguments -suppress warnings -printArgs -sourceFiles compiler/testData/cli/js/simple2js.kt,compiler/testData/cli/js/../warnings.kt
|
||||
ERROR: Specify output file via -output
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
INFO: Invoking compiler org.jetbrains.jet.cli.jvm.K2JVMCompiler with arguments -printArgs -script compiler/testData/cli/jvm/hello.kts
|
||||
INFO: Invoking K2JVMCompiler with arguments -printArgs -script compiler/testData/cli/jvm/hello.kts
|
||||
hello
|
||||
OK
|
||||
|
||||
@@ -81,7 +81,7 @@ public final class JetCompilerMessagingTest extends IDECompilerMessagingTest {
|
||||
@Override
|
||||
protected void checkHeader(@NotNull MessageChecker checker) {
|
||||
checker.expect(Message.info().textStartsWith("Using kotlinHome="));
|
||||
checker.expect(Message.info().textStartsWith("Invoking compiler"));
|
||||
checker.expect(Message.info().textStartsWith("Invoking K2JVMCompiler"));
|
||||
checker.expect(Message.info().textStartsWith("Kotlin Compiler version"));
|
||||
checker.expect(Message.stats().textStartsWith("Using Kotlin home directory"));
|
||||
checker.expect(Message.stats().text("Configuring the compilation environment"));
|
||||
|
||||
@@ -101,7 +101,7 @@ public final class K2JSCompilerMessagingTest extends IDECompilerMessagingTest {
|
||||
@Override
|
||||
protected void checkHeader(@NotNull MessageChecker checker) {
|
||||
checker.expect(info().textStartsWith("Using kotlinHome="));
|
||||
checker.expect(info().textStartsWith("Invoking compiler"));
|
||||
checker.expect(info().textStartsWith("Invoking K2JSCompiler"));
|
||||
checker.expect(info().textStartsWith("Kotlin Compiler version"));
|
||||
checker.expect(stats().textMatchesRegexp("Compiling source files: .*/src/test.kt"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user