diff options
author | KrystianUjma <kujma@virtuslab.com> | 2019-02-27 17:41:04 +0100 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2019-03-11 19:07:22 +0300 |
commit | 7d7e2012e35722c6c0315b2205d708ef5d4341d9 (patch) | |
tree | a8121e7fed01268999be8f8bf3091333277e6787 /runners/gradle-plugin | |
parent | 20bd82d30881f8b8439ea49baab923bc04ff1f2e (diff) | |
download | dokka-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')
-rw-r--r-- | runners/gradle-plugin/src/main/kotlin/main.kt | 4 |
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 = "" |