From 7995013abb0f0173f3aaf882f982c68935d3d338 Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Fri, 7 Dec 2012 15:03:51 +0400 Subject: [PATCH] main() added to quickly compile runtime for tests --- .../jet/codegen/forTestCompile/ForTestCompileRuntime.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compiler/tests/org/jetbrains/jet/codegen/forTestCompile/ForTestCompileRuntime.java b/compiler/tests/org/jetbrains/jet/codegen/forTestCompile/ForTestCompileRuntime.java index ba6c29c24d1..f218f1fd3b0 100644 --- a/compiler/tests/org/jetbrains/jet/codegen/forTestCompile/ForTestCompileRuntime.java +++ b/compiler/tests/org/jetbrains/jet/codegen/forTestCompile/ForTestCompileRuntime.java @@ -18,6 +18,7 @@ package org.jetbrains.jet.codegen.forTestCompile; import com.intellij.openapi.util.io.FileUtil; import org.jetbrains.annotations.NotNull; +import org.jetbrains.jet.JetTestUtils; import org.jetbrains.jet.cli.common.ExitCode; import org.jetbrains.jet.cli.jvm.K2JVMCompiler; import org.junit.Assert; @@ -115,4 +116,9 @@ public class ForTestCompileRuntime { return ForTestCompileSomething.ACTUALLY_COMPILE ? Runtime.runtime.getJarFile() : new File("dist/kotlinc/lib/kotlin-runtime.jar"); } + // This method is very convenient when you have trouble compiling runtime in tests + public static void main(String[] args) throws IOException { + compileStdlib(JetTestUtils.tmpDir("runtime")); + } + }