aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Petrenko <eugene.petrenko@jetbrains.com>2018-09-13 23:15:27 +0300
committerEugene Petrenko <eugene.petrenko@jetbrains.com>2018-09-13 23:15:27 +0300
commit9379b68427bcfb44caa3ced02cb1c34789869e41 (patch)
tree4521aa9e0892be8214b3a2839404ede869cefe45
parent4d5ec117b8e19045edc33a7f4186a988bc500516 (diff)
downloaddokka-9379b68427bcfb44caa3ced02cb1c34789869e41.tar.gz
dokka-9379b68427bcfb44caa3ced02cb1c34789869e41.tar.bz2
dokka-9379b68427bcfb44caa3ced02cb1c34789869e41.zip
report files clash
-rw-r--r--core/src/main/kotlin/Generation/FileGenerator.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/src/main/kotlin/Generation/FileGenerator.kt b/core/src/main/kotlin/Generation/FileGenerator.kt
index eb6800b3..f9104110 100644
--- a/core/src/main/kotlin/Generation/FileGenerator.kt
+++ b/core/src/main/kotlin/Generation/FileGenerator.kt
@@ -30,6 +30,13 @@ class FileGenerator @Inject constructor(@Named("outputDir") override val root: F
for ((file, items) in nodes.groupBy { fileForNode(it, formatService.extension) }) {
+ if (items.size > 1) {
+ println("An attempt to generate ${root.toPath().relativize(file.toPath())} for: ")
+ for (item in items) {
+ println(" ${item.allReferences().map { "${it.to.kind} ${it.to.name }" } }")
+ }
+ }
+
file.parentFile?.mkdirsOrFail()
try {
FileOutputStream(file).use {