JPS: ignore removed java files

#KT-27458 Fixed

Original commit: 800fcc511a
This commit is contained in:
Sergey Rostov
2020-05-12 10:50:18 +03:00
parent 76674906e5
commit 59993b1441
7 changed files with 72 additions and 12 deletions
@@ -463,6 +463,29 @@ open class KotlinJpsBuildTest : KotlinJpsBuildTestBase() {
buildAllModules().assertSuccessful()
}
fun testPureJavaProject() {
initProject(JVM_FULL_RUNTIME)
fun build() {
var someFilesCompiled = false
buildCustom(CanceledStatus.NULL, TestProjectBuilderLogger(), BuildResult()) {
project.setTestingContext(TestingContext(LookupTracker.DO_NOTHING, object : TestingBuildLogger {
override fun compilingFiles(files: Collection<File>, allRemovedFilesFiles: Collection<File>) {
someFilesCompiled = true
}
}))
}
assertFalse("Kotlin builder should return early if there are no Kotlin files", someFilesCompiled)
}
build()
rename("${workDir}/src/Test.java", "${workDir}/src/Test1.java")
build()
}
fun testKotlinJavaProject() {
doTestWithRuntime()
}