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:
committed by
Evgeny Gerashchenko
parent
a94f7f10b0
commit
f31ea8bd0e
@@ -298,7 +298,7 @@ public class JetTestUtils {
|
|||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
public static File getJdkAnnotationsJar() {
|
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()) {
|
if (!jdkAnnotations.exists()) {
|
||||||
throw new RuntimeException("Kotlin JDK annotations jar not found; please run 'ant dist' to build it");
|
throw new RuntimeException("Kotlin JDK annotations jar not found; please run 'ant dist' to build it");
|
||||||
}
|
}
|
||||||
@@ -307,7 +307,7 @@ public class JetTestUtils {
|
|||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
public static File getAndroidSdkAnnotationsJar() {
|
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()) {
|
if (!androidSdkAnnotations.exists()) {
|
||||||
throw new RuntimeException("Kotlin Android SDK annotations jar not found; please run 'ant dist' to build it");
|
throw new RuntimeException("Kotlin Android SDK annotations jar not found; please run 'ant dist' to build it");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user