1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-27 00:38:11 -07:00

Generate javadocs in {build}/docs/javadoc.

This commit is contained in:
Cedric Beust 2017-01-05 10:13:52 -08:00
parent ffbe5491f2
commit f563d274dd
4 changed files with 19 additions and 15 deletions

View file

@ -44,11 +44,12 @@ class KotlinCompiler @Inject constructor(
}
val cp = compilerFirst(info.dependencies.map { it.jarFile.get() })
val infoDir = info.directory
val outputDir = if (infoDir != null) {
KFiles.joinDir(infoDir, info.outputDir.path)
} else {
info.outputDir.path
}
val outputDir =
if (infoDir != null) {
KFiles.joinDir(infoDir, info.outputDir.path)
} else {
info.outputDir.path
}
// kotlinc can accept a jar file as -d (which is super convenient) so only
// create a directory if the output is not a jar file
if (! outputDir.endsWith(".jar")) {