Skip to content

Commit

Permalink
Supports hacks for MPP documentation generation
Browse files Browse the repository at this point in the history
  • Loading branch information
elizarov authored and semoro committed Dec 22, 2017
1 parent dcaa940 commit 4a425e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions core/src/main/kotlin/Analysis/AnalysisEnvironment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@ class AnalysisEnvironment(val messageCollector: MessageCollector) : Disposable {


val javaRoots = classpath
.map {
.mapNotNull {
val rootFile = when {
it.extension == "jar" ->
StandardFileSystems.jar().findFileByPath("${it.absolutePath}${URLUtil.JAR_SEPARATOR}")!!
StandardFileSystems.jar().findFileByPath("${it.absolutePath}${URLUtil.JAR_SEPARATOR}")
else ->
StandardFileSystems.local().findFileByPath(it.absolutePath)!!
StandardFileSystems.local().findFileByPath(it.absolutePath)
}

JavaRoot(rootFile, JavaRoot.RootType.BINARY)
rootFile?.let { JavaRoot(it, JavaRoot.RootType.BINARY) }
}

val resolverForProject = ResolverForProjectImpl(
Expand Down
2 changes: 1 addition & 1 deletion runners/gradle-plugin/src/main/kotlin/main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ open class DokkaTask : DefaultTask() {
}
}

class SourceRoot : DokkaConfiguration.SourceRoot {
class SourceRoot : DokkaConfiguration.SourceRoot, Serializable {
override var path: String = ""
set(value) {
field = File(value).absolutePath
Expand Down

0 comments on commit 4a425e2

Please sign in to comment.