1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -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 {
override fun compile(projectName: String?, info: CompilerActionInfo): TaskResult {
val version = settings.kobaltCompilerVersion
log(1, " Kotlin $version compiling "
+ Strings.pluralizeAll(info.sourceFiles.size, "directory", "directories" ))
if (! info.outputDir.path.endsWith("ript.jar")) {
// Don't display the message if compiling Build.kt
log(1, " Kotlin $version compiling "
+ Strings.pluralizeAll(info.sourceFiles.size, "directory", "directories"))
}
val cp = compilerFirst(info.dependencies.map {it.jarFile.get()})
val infoDir = info.directory
val outputDir = if (infoDir != null) {