in order to avoid misleading suggestions to run 'ant dist', calculate the paths to SDK annotations relatively to the home directory

This commit is contained in:
Dmitry Jemerov
2014-12-08 12:53:40 +01:00
committed by Evgeny Gerashchenko
parent a94f7f10b0
commit f31ea8bd0e
@@ -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");
}