IC: add destination dir to start of classpath instead of end

Otherwise IC fails when a project declares a class with the same name
as in one of its dependencies.
The issue is relevant only for non-JPS IC (Gradle, Maven, etc.),
but I added the test for JPS too.

  #KT-20516 fixed

Original commit: 605bcc66a1
This commit is contained in:
Alexey Tsvetkov
2018-03-21 14:35:57 +03:00
parent f94a2d688d
commit 9a0b91ef31
13 changed files with 43 additions and 0 deletions
@@ -117,6 +117,12 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
doTest(fileName);
}
@TestMetadata("duplicatedClass")
public void testDuplicatedClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/multiModule/duplicatedClass/");
doTest(fileName);
}
@TestMetadata("exportedDependency")
public void testExportedDependency() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/multiModule/exportedDependency/");