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

Reformatting.

This commit is contained in:
Cedric Beust 2015-11-18 23:17:11 -08:00
parent bb35408c56
commit 70bff11edb

View file

@ -40,14 +40,15 @@ class KotlinPlugin @Inject constructor(
override fun doCompile(project: Project, cai: CompilerActionInfo) : TaskResult {
val result =
if (cai.sourceFiles.size > 0) {
compilePrivate(project, cai.dependencies, cai.sourceFiles, cai.outputDir)
lp(project, "Compilation succeeded")
TaskResult()
} else {
warn("Couldn't find any source files")
TaskResult()
}
if (cai.sourceFiles.size > 0) {
compilePrivate(project, cai.dependencies, cai.sourceFiles, cai.outputDir)
} else {
warn("Couldn't find any source files")
TaskResult()
}
lp(project, "Compilation " + if (result.success) "succeeded" else "failed")
return result
}
@ -56,7 +57,7 @@ class KotlinPlugin @Inject constructor(
return TaskResult()
}
@Task(name = TASK_COMPILE_TEST, description = "Compile the tests", runAfter = arrayOf(TASK_COMPILE))
@Task(name = TASK_COMPILE_TEST, description = "Compile the tests", runAfter = arrayOf(TASK_COMPILE))
fun taskCompileTest(project: Project): TaskResult {
copyResources(project, JvmCompilerPlugin.SOURCE_SET_TEST)
val projectDir = File(project.directory)