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

Don't display the compiling message for build files.

This commit is contained in:
Cedric Beust 2016-04-12 21:56:35 -08:00
parent 1ffb03f660
commit 1a029e4a56

View file

@ -39,8 +39,11 @@ class KotlinCompiler @Inject constructor(
val compilerAction = object: ICompilerAction { val compilerAction = object: ICompilerAction {
override fun compile(projectName: String?, info: CompilerActionInfo): TaskResult { override fun compile(projectName: String?, info: CompilerActionInfo): TaskResult {
val version = settings.kobaltCompilerVersion val version = settings.kobaltCompilerVersion
if (! info.outputDir.path.endsWith("ript.jar")) {
// Don't display the message if compiling Build.kt
log(1, " Kotlin $version compiling " log(1, " Kotlin $version compiling "
+ Strings.pluralizeAll(info.sourceFiles.size, "directory", "directories")) + Strings.pluralizeAll(info.sourceFiles.size, "directory", "directories"))
}
val cp = compilerFirst(info.dependencies.map {it.jarFile.get()}) val cp = compilerFirst(info.dependencies.map {it.jarFile.get()})
val infoDir = info.directory val infoDir = info.directory
val outputDir = if (infoDir != null) { val outputDir = if (infoDir != null) {