Log version in JPS plugin
CompilerVersion.java is moved to cli-common (shared between compiler and JPS plugin) and renamed to KotlinVersion This is needed because on TeamCity a JPS plugin is configured separately from the compiler, so it may happen that JPS plugin version X tries to run compiler version X+100, and causes trouble.
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@
|
||||
|
||||
package org.jetbrains.jet.cli.common;
|
||||
|
||||
public class CompilerVersion {
|
||||
public class KotlinVersion {
|
||||
// The value of this constant is generated by the build script
|
||||
// DON'T MODIFY IT
|
||||
public static final String VERSION = "@snapshot@";
|
||||
@@ -157,7 +157,7 @@ public abstract class CLICompiler<A extends CompilerArguments> {
|
||||
@NotNull MessageRenderer messageRenderer) {
|
||||
if (arguments.isVersion()) {
|
||||
String versionMessage = messageRenderer.render(CompilerMessageSeverity.INFO,
|
||||
"Kotlin Compiler version " + CompilerVersion.VERSION,
|
||||
"Kotlin Compiler version " + KotlinVersion.VERSION,
|
||||
CompilerMessageLocation.NO_LOCATION);
|
||||
errStream.println(versionMessage);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user