aboutsummaryrefslogtreecommitdiff
path: root/runners/gradle-plugin/src
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-08-21 14:35:07 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-08-24 17:05:30 +0200
commit8ba5f2d4c0d8a476e5c4dbf3bcb75116f7e7ba50 (patch)
tree5366f658e0c32400608760273f47afdbc022edac /runners/gradle-plugin/src
parent3081432fc836392abc9b013eb89103a22fb51b0f (diff)
downloaddokka-8ba5f2d4c0d8a476e5c4dbf3bcb75116f7e7ba50.tar.gz
dokka-8ba5f2d4c0d8a476e5c4dbf3bcb75116f7e7ba50.tar.bz2
dokka-8ba5f2d4c0d8a476e5c4dbf3bcb75116f7e7ba50.zip
GradleSourceLinkBuilder: Use canonicalPath instead of absolutePath
Diffstat (limited to 'runners/gradle-plugin/src')
-rw-r--r--runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/GradleSourceLinkBuilder.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/GradleSourceLinkBuilder.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/GradleSourceLinkBuilder.kt
index a271e810..e84bfd2c 100644
--- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/GradleSourceLinkBuilder.kt
+++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/GradleSourceLinkBuilder.kt
@@ -27,7 +27,7 @@ class GradleSourceLinkBuilder(
override fun build(): SourceLinkDefinitionImpl {
return SourceLinkDefinitionImpl(
- localDirectory = localDirectory.getSafe()?.absolutePath ?: project.projectDir.absolutePath,
+ localDirectory = localDirectory.getSafe()?.canonicalPath ?: project.projectDir.canonicalPath,
remoteUrl = checkNotNull(remoteUrl.getSafe()) { "missing remoteUrl on source link" },
remoteLineSuffix = remoteLineSuffix.getSafe()
)