Rename K2JVMCompilerVersion -> CompilerVersion, move to common.
This commit is contained in:
@@ -21,7 +21,6 @@ import org.jetbrains.annotations.NotNull;
|
|||||||
import org.jetbrains.jet.cli.common.messages.CompilerMessageLocation;
|
import org.jetbrains.jet.cli.common.messages.CompilerMessageLocation;
|
||||||
import org.jetbrains.jet.cli.common.messages.CompilerMessageSeverity;
|
import org.jetbrains.jet.cli.common.messages.CompilerMessageSeverity;
|
||||||
import org.jetbrains.jet.cli.common.messages.MessageRenderer;
|
import org.jetbrains.jet.cli.common.messages.MessageRenderer;
|
||||||
import org.jetbrains.jet.cli.jvm.K2JVMCompilerVersion;
|
|
||||||
import org.jetbrains.jet.cli.jvm.compiler.CompileEnvironmentException;
|
import org.jetbrains.jet.cli.jvm.compiler.CompileEnvironmentException;
|
||||||
|
|
||||||
import java.io.PrintStream;
|
import java.io.PrintStream;
|
||||||
@@ -130,7 +129,7 @@ public abstract class CLICompiler<A extends CompilerArguments, C extends Compile
|
|||||||
@NotNull MessageRenderer messageRenderer) {
|
@NotNull MessageRenderer messageRenderer) {
|
||||||
if (arguments.isVersion()) {
|
if (arguments.isVersion()) {
|
||||||
String versionMessage = messageRenderer.render(CompilerMessageSeverity.INFO,
|
String versionMessage = messageRenderer.render(CompilerMessageSeverity.INFO,
|
||||||
"Kotlin Compiler version " + K2JVMCompilerVersion.VERSION,
|
"Kotlin Compiler version " + CompilerVersion.VERSION,
|
||||||
CompilerMessageLocation.NO_LOCATION);
|
CompilerMessageLocation.NO_LOCATION);
|
||||||
errStream.println(versionMessage);
|
errStream.println(versionMessage);
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -14,12 +14,12 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.jetbrains.jet.cli.jvm;
|
package org.jetbrains.jet.cli.common;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author abreslav
|
* @author abreslav
|
||||||
*/
|
*/
|
||||||
public class K2JVMCompilerVersion {
|
public class CompilerVersion {
|
||||||
// The value of this constant is generated by the build script
|
// The value of this constant is generated by the build script
|
||||||
// DON'T MODIFY IT
|
// DON'T MODIFY IT
|
||||||
public static final String VERSION = "@snapshot@";
|
public static final String VERSION = "@snapshot@";
|
||||||
Reference in New Issue
Block a user