Store third-party annotations in a separate directory

This commit is contained in:
Dmitry Jemerov
2017-09-08 17:26:12 +02:00
parent 296638a7c4
commit cc8fbf6078
41 changed files with 11 additions and 11 deletions
@@ -21,6 +21,6 @@
<orderEntry type="module" module-name="js.translator" />
<orderEntry type="module" module-name="js.serializer" />
<orderEntry type="module" module-name="tests-common" scope="TEST" />
<orderEntry type="library" name="jps" level="project" scope="TEST" />
<orderEntry type="library" scope="TEST" name="jps" level="project" />
</component>
</module>
@@ -24,7 +24,7 @@ import org.jetbrains.kotlin.test.TestJdkKind
import org.jetbrains.kotlin.utils.Jsr305State
import java.io.File
val FOREIGN_ANNOTATIONS_SOURCES_PATH = "compiler/testData/foreignAnnotations/annotations"
val FOREIGN_ANNOTATIONS_SOURCES_PATH = "third-party/annotations"
val TEST_ANNOTATIONS_SOURCE_PATH = "compiler/testData/foreignAnnotations/testAnnotations"
abstract class AbstractForeignAnnotationsTest : AbstractDiagnosticsTest() {
@@ -18,5 +18,5 @@ package org.jetbrains.kotlin.checkers
abstract class AbstractForeignJava8AnnotationsTest : AbstractForeignAnnotationsTest() {
override val annotationsPath: String
get() = "compiler/testData/foreignAnnotationsJava8/annotations"
get() = "third-party/jdk8-annotations"
}
@@ -32,7 +32,7 @@ import org.jetbrains.kotlin.utils.Jsr305State
class Jsr305HighlightingTest : KotlinLightCodeInsightFixtureTestCase() {
override fun getProjectDescriptor(): LightProjectDescriptor {
val foreignAnnotationsJar = MockLibraryUtil.compileJvmLibraryToJar("compiler/testData/foreignAnnotations/annotations", "foreign-annotations")
val foreignAnnotationsJar = MockLibraryUtil.compileJvmLibraryToJar("third-party/annotations", "foreign-annotations")
val libraryJar = MockLibraryUtil.compileJvmLibraryToJar("idea/testData/highlighterJsr305/library", "jsr305-library",
extraClasspath = listOf(foreignAnnotationsJar.absolutePath))
return object : KotlinJdkAndLibraryProjectDescriptor(
+7 -7
View File
@@ -70,31 +70,31 @@ the Kotlin IntelliJ IDEA plugin:
The following source code is used for testing the Kotlin compiler and/or plugin and is not incorporated into
any distributions of the compiler, libraries or plugin:
- Path: compiler/testData/foreignAnnotations/annotations/android
- Path: third-party/annotations/android
- License: Apache 2 (license/third_party/aosp_license.txt)
- Origin: Copyright (C) 2011-15 The Android Open Source Project
- Path: compiler/testData/foreignAnnotations/annotations/com/android
- Path: third-party/annotations/com/android
- License: Apache 2 (license/third_party/aosp_license.txt)
- Origin: Copyright (C) 2011-15 The Android Open Source Project
- Path: compiler/testData/foreignAnnotations/annotations/org/eclipse
- Path: third-party/annotations/org/eclipse
- License: Eclipse Public License v1.0 (license/third_party/testdata/eclipse_license.txt)
- Origin: Eclipse JDT, Copyright (c) 2011, 2013 Stephan Herrmann and others.
- Path: compiler/testData/foreignAnnotations/annotations/edu/umd/cs/findbugs
- Path: third-party/annotations/edu/umd/cs/findbugs
- License: LGPL 2.1 (license/third_party/testdata/findbugs_license.txt)
- Origin: Bytecode Analysis Framework, Copyright (C) 2005 University of Maryland
- Path: compiler/testData/foreignAnnotationsJava8/annotations/org/eclipse
- Path: third-party/jdk8-annotations/org/eclipse
- License: Eclipse Public License v1.0 (license/third_party/testdata/eclipse_license.txt)
- Origin: Eclipse JDT, Copyright (c) 2011, 2013 Stephan Herrmann and others.
- Path: compiler/testData/foreignAnnotations/annotations/io/reactivex
- Path: third-party/annotations/io/reactivex
- License: Apache 2 (license/third_party/testdata/rxjava_license.txt)
- Origin: RxJava, Copyright (c) 2016-present, RxJava Contributors
- Path: compiler/testData/foreignAnnotations/annotations/lombok
- Path: third-party/annotations/lombok
- License: MIT (license/third_party/testdata/lombok_license.txt)
- Origin: Project Lombok, Copyright (C) 2009-2013 The Project Lombok Authors