Use KotlinPaths to access jars
This commit is contained in:
+8
-3
@@ -34,6 +34,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.kotlin.config.KotlinCompilerVersion;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.TestCaseWithTmpdir;
|
||||
import org.jetbrains.kotlin.utils.KotlinPaths;
|
||||
import org.jetbrains.kotlin.utils.PathUtil;
|
||||
|
||||
import java.io.File;
|
||||
@@ -134,9 +135,13 @@ public abstract class KotlinIntegrationTestBase extends TestCaseWithTmpdir {
|
||||
}
|
||||
|
||||
public static File getCompilerLib() {
|
||||
File file = PathUtil.getKotlinPathsForDistDirectory().getLibPath().getAbsoluteFile();
|
||||
assertTrue("Lib directory doesn't exist. Run 'ant dist'", file.isDirectory());
|
||||
return file;
|
||||
return getKotlinPaths().getLibPath().getAbsoluteFile();
|
||||
}
|
||||
|
||||
public static KotlinPaths getKotlinPaths() {
|
||||
KotlinPaths paths = PathUtil.getKotlinPathsForDistDirectory();
|
||||
assertTrue("Compiler dist not found. Build 'dist' target.", paths.getLibPath().isDirectory());
|
||||
return paths;
|
||||
}
|
||||
|
||||
private static class OutputListener extends ProcessAdapter {
|
||||
|
||||
Reference in New Issue
Block a user