diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-08-10 14:28:18 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-08-14 17:51:11 +0200 |
commit | a465b3198f23bfe95b0f27621f597b09e5e5499b (patch) | |
tree | 810377ae81d89de9061937d1717d1905fc4f184c /runners/gradle-plugin/src/test/kotlin/org/jetbrains | |
parent | e3c1b2bdbfe20e602fbf570df946edc94266e5ff (diff) | |
download | dokka-a465b3198f23bfe95b0f27621f597b09e5e5499b.tar.gz dokka-a465b3198f23bfe95b0f27621f597b09e5e5499b.tar.bz2 dokka-a465b3198f23bfe95b0f27621f597b09e5e5499b.zip |
Add documentation to DokkaMultiModuleFileLayout
Diffstat (limited to 'runners/gradle-plugin/src/test/kotlin/org/jetbrains')
2 files changed, 4 insertions, 4 deletions
diff --git a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleFileLayoutTest.kt b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleFileLayoutTest.kt index 36abacfc..951e292f 100644 --- a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleFileLayoutTest.kt +++ b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleFileLayoutTest.kt @@ -55,12 +55,12 @@ class DokkaMultiModuleFileLayoutTest { subFolder.mkdirs() subFolder.resolve("other.file").writeText("other text") - val layout = object : DokkaMultiModuleFileLayout { - override fun targetChildOutputDirectory(parent: AbstractDokkaParentTask, child: AbstractDokkaTask): File { + parentTask.fileLayout = object : DokkaMultiModuleFileLayout { + override fun targetChildOutputDirectory(parent: DokkaMultiModuleTask, child: AbstractDokkaTask): File { return parent.project.file("target/output") } } - layout.copyChildOutputDirectory(parentTask, childTask) + parentTask.copyChildOutputDirectory(childTask) /* Assertions */ val targetOutputDirectory = project.file("target/output") diff --git a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleTaskTest.kt b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleTaskTest.kt index a7c9946d..640d980b 100644 --- a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleTaskTest.kt +++ b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleTaskTest.kt @@ -166,7 +166,7 @@ class DokkaMultiModuleTaskTest { parentTask.addChildTask(childTask) parentTask.fileLayout = object : DokkaMultiModuleFileLayout { - override fun targetChildOutputDirectory(parent: AbstractDokkaParentTask, child: AbstractDokkaTask): File { + override fun targetChildOutputDirectory(parent: DokkaMultiModuleTask, child: AbstractDokkaTask): File { return parent.project.buildDir.resolve(child.name) } } |