From f31ea8bd0e02f1307da0d7cc09f9685333287989 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Mon, 8 Dec 2014 12:53:40 +0100 Subject: [PATCH] in order to avoid misleading suggestions to run 'ant dist', calculate the paths to SDK annotations relatively to the home directory --- compiler/tests/org/jetbrains/jet/JetTestUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/tests/org/jetbrains/jet/JetTestUtils.java b/compiler/tests/org/jetbrains/jet/JetTestUtils.java index a1c16fcdbd6..7bfe442383b 100644 --- a/compiler/tests/org/jetbrains/jet/JetTestUtils.java +++ b/compiler/tests/org/jetbrains/jet/JetTestUtils.java @@ -298,7 +298,7 @@ public class JetTestUtils { @NotNull public static File getJdkAnnotationsJar() { - File jdkAnnotations = new File("dependencies/annotations/kotlin-jdk-annotations.jar"); + File jdkAnnotations = new File(JetTestCaseBuilder.getHomeDirectory(), "dependencies/annotations/kotlin-jdk-annotations.jar"); if (!jdkAnnotations.exists()) { throw new RuntimeException("Kotlin JDK annotations jar not found; please run 'ant dist' to build it"); } @@ -307,7 +307,7 @@ public class JetTestUtils { @NotNull public static File getAndroidSdkAnnotationsJar() { - File androidSdkAnnotations = new File("dependencies/annotations/kotlin-android-sdk-annotations.jar"); + File androidSdkAnnotations = new File(JetTestCaseBuilder.getHomeDirectory(), "dependencies/annotations/kotlin-android-sdk-annotations.jar"); if (!androidSdkAnnotations.exists()) { throw new RuntimeException("Kotlin Android SDK annotations jar not found; please run 'ant dist' to build it"); }