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

Fix suffixes.

This commit is contained in:
Cedric Beust 2016-02-15 13:21:18 -08:00
parent 8ccece97e0
commit df5fcce61e
5 changed files with 30 additions and 17 deletions

View file

@ -56,6 +56,8 @@ class JavaPlugin @Inject constructor(val javaCompiler: JavaCompiler)
val compiler = object: ICompiler {
override val sourceSuffixes = listOf("java")
override val sourceDirectory = "java"
override fun compile(project: Project, context: KobaltContext, info: CompilerActionInfo): TaskResult {
val result =
if (info.sourceFiles.size > 0) {

View file

@ -115,6 +115,8 @@ class KotlinPlugin @Inject constructor(val executors: KobaltExecutors)
val compiler = object: ICompiler {
override val sourceSuffixes = listOf("kt")
override val sourceDirectory = "kotlin"
override fun compile(project: Project, context: KobaltContext, info: CompilerActionInfo): TaskResult {
val result =
if (info.sourceFiles.size > 0) {