mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Don't add nonexistent Java dir.
This commit is contained in:
parent
4a86afc605
commit
ad2c54b72f
1 changed files with 4 additions and 1 deletions
|
@ -282,7 +282,10 @@ open class JvmCompilerPlugin @Inject constructor(
|
||||||
val extraSourceFiles = arrayListOf<String>()
|
val extraSourceFiles = arrayListOf<String>()
|
||||||
if (sourceSuffixes.any { it.contains("kt")}) {
|
if (sourceSuffixes.any { it.contains("kt")}) {
|
||||||
project.sourceDirectories.forEach {
|
project.sourceDirectories.forEach {
|
||||||
if (it.contains("java")) extraSourceFiles.add(KFiles.joinDir(project.directory, it))
|
val javaDir = KFiles.joinDir(project.directory, it)
|
||||||
|
if (File(javaDir).exists()) {
|
||||||
|
if (it.contains("java")) extraSourceFiles.add(javaDir)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue