aboutsummaryrefslogtreecommitdiff
path: root/runners/gradle-plugin/src/main/kotlin
diff options
context:
space:
mode:
authorKrystianUjma <kujma@virtuslab.com>2019-02-27 17:41:04 +0100
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2019-03-11 19:07:22 +0300
commit7d7e2012e35722c6c0315b2205d708ef5d4341d9 (patch)
treea8121e7fed01268999be8f8bf3091333277e6787 /runners/gradle-plugin/src/main/kotlin
parent20bd82d30881f8b8439ea49baab923bc04ff1f2e (diff)
downloaddokka-7d7e2012e35722c6c0315b2205d708ef5d4341d9.tar.gz
dokka-7d7e2012e35722c6c0315b2205d708ef5d4341d9.tar.bz2
dokka-7d7e2012e35722c6c0315b2205d708ef5d4341d9.zip
Fix test, prohibit non-unix path style for dir property
Update readme.md, allow only unix based path (dir property)
Diffstat (limited to 'runners/gradle-plugin/src/main/kotlin')
-rw-r--r--runners/gradle-plugin/src/main/kotlin/main.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/runners/gradle-plugin/src/main/kotlin/main.kt b/runners/gradle-plugin/src/main/kotlin/main.kt
index c0b74695..f4adc1c3 100644
--- a/runners/gradle-plugin/src/main/kotlin/main.kt
+++ b/runners/gradle-plugin/src/main/kotlin/main.kt
@@ -448,7 +448,9 @@ open class LinkMapping : Serializable, DokkaConfiguration.SourceLinkDefinition {
var dir: String
get() = path
set(value) {
- path = value
+ if (value.contains("\\"))
+ throw java.lang.IllegalArgumentException("Incorrect dir property, only Unix based path allowed.")
+ else path = value
}
override var path: String = ""