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/maven-plugin/src/main | |
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/maven-plugin/src/main')
-rw-r--r-- | runners/maven-plugin/src/main/kotlin/DokkaMojo.kt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt b/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt index 41521388..324703a0 100644 --- a/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt +++ b/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt @@ -4,6 +4,7 @@ import org.apache.maven.archiver.MavenArchiveConfiguration import org.apache.maven.archiver.MavenArchiver import org.apache.maven.execution.MavenSession import org.apache.maven.plugin.AbstractMojo +import org.apache.maven.plugin.MojoExecutionException import org.apache.maven.plugins.annotations.* import org.apache.maven.project.MavenProject import org.apache.maven.project.MavenProjectHelper @@ -125,6 +126,12 @@ abstract class AbstractDokkaMojo : AbstractMojo() { return } + sourceLinks.forEach { + if (it.dir.contains("\\")) { + throw MojoExecutionException("Incorrect dir property, only Unix based path allowed.") + } + } + val gen = DokkaGenerator( MavenDokkaLogger(log), classpath, |