Locate build history when file is outside of root project dir
Support use-cases when the build dir is outside of root project dir. Many projects set up output dir as <root_project>/../out/<project_name>/build to be able to clean build dir more easily. This commit adds support to build history file detection and it tries to find build history files for artifacts that are: - under root project dir (a default structure) - under root project's build dir parent (to support typical custom setup) Fixes https://youtrack.jetbrains.com/issue/KT-40875 Test: BaseIncrementalCompilationMultiProjectIT
This commit is contained in:
committed by
nataliya.valtman
parent
5de34b052f
commit
2fce6a4af9
@@ -21,6 +21,7 @@ data class IncrementalModuleEntry(
|
||||
|
||||
class IncrementalModuleInfo(
|
||||
val projectRoot: File,
|
||||
val rootProjectBuildDir: File,
|
||||
val dirToModule: Map<File, IncrementalModuleEntry>,
|
||||
val nameToModules: Map<String, Set<IncrementalModuleEntry>>,
|
||||
val jarToClassListFile: Map<File, File>,
|
||||
@@ -28,6 +29,6 @@ class IncrementalModuleInfo(
|
||||
val jarToModule: Map<File, IncrementalModuleEntry>
|
||||
) : Serializable {
|
||||
companion object {
|
||||
private const val serialVersionUID = 0L
|
||||
private const val serialVersionUID = 1L
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user