mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Reformatting.
This commit is contained in:
parent
bb35408c56
commit
70bff11edb
1 changed files with 10 additions and 9 deletions
|
@ -40,14 +40,15 @@ class KotlinPlugin @Inject constructor(
|
||||||
|
|
||||||
override fun doCompile(project: Project, cai: CompilerActionInfo) : TaskResult {
|
override fun doCompile(project: Project, cai: CompilerActionInfo) : TaskResult {
|
||||||
val result =
|
val result =
|
||||||
if (cai.sourceFiles.size > 0) {
|
if (cai.sourceFiles.size > 0) {
|
||||||
compilePrivate(project, cai.dependencies, cai.sourceFiles, cai.outputDir)
|
compilePrivate(project, cai.dependencies, cai.sourceFiles, cai.outputDir)
|
||||||
lp(project, "Compilation succeeded")
|
} else {
|
||||||
TaskResult()
|
warn("Couldn't find any source files")
|
||||||
} else {
|
TaskResult()
|
||||||
warn("Couldn't find any source files")
|
}
|
||||||
TaskResult()
|
|
||||||
}
|
lp(project, "Compilation " + if (result.success) "succeeded" else "failed")
|
||||||
|
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,7 +57,7 @@ class KotlinPlugin @Inject constructor(
|
||||||
return TaskResult()
|
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 {
|
fun taskCompileTest(project: Project): TaskResult {
|
||||||
copyResources(project, JvmCompilerPlugin.SOURCE_SET_TEST)
|
copyResources(project, JvmCompilerPlugin.SOURCE_SET_TEST)
|
||||||
val projectDir = File(project.directory)
|
val projectDir = File(project.directory)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue