1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-25 16:07:12 -07:00

Log tweaks.

This commit is contained in:
Cedric Beust 2015-10-06 22:04:19 -07:00
parent 83ddd48260
commit 3147fe43a1
3 changed files with 3 additions and 3 deletions

View file

@ -34,7 +34,7 @@ abstract public class JvmCompilerPlugin @Inject constructor(
* Log with a project. * Log with a project.
*/ */
protected fun lp(project: Project, s: String) { protected fun lp(project: Project, s: String) {
log(1, "${project.name}: ${s}") log(2, "${project.name}: ${s}")
} }
fun calculateClasspath(vararg allDependencies : List<IClasspathDependency>): List<IClasspathDependency> { fun calculateClasspath(vararg allDependencies : List<IClasspathDependency>): List<IClasspathDependency> {

View file

@ -60,7 +60,7 @@ public class JavaPlugin @Inject constructor(
// pb.redirectError(File("/tmp/kobalt-err")) // pb.redirectError(File("/tmp/kobalt-err"))
// pb.redirectOutput(File("/tmp/kobalt-out")) // pb.redirectOutput(File("/tmp/kobalt-out"))
val line = args.join(" ") val line = args.join(" ")
lp(project, "Compiling ${sourceFiles.size()} files with classpath size ${cpList.size()}") log(1, "Compiling ${sourceFiles.size()} files with classpath size ${cpList.size()}")
log(2, "Compiling ${project}:\n${line}") log(2, "Compiling ${project}:\n${line}")
val process = pb.start() val process = pb.start()
val errorCode = process.waitFor() val errorCode = process.waitFor()

View file

@ -85,7 +85,7 @@ public class KotlinPlugin @Inject constructor(
outputDirectory: String): TaskResult { outputDirectory: String): TaskResult {
File(outputDirectory).mkdirs() File(outputDirectory).mkdirs()
// lp(project, "Compiling ${sources.size()} files with classpath size ${cpList.size()}") log(1, "Compiling ${sources.size()} files with classpath size ${cpList.size()}")
return kotlinCompilePrivate { return kotlinCompilePrivate {
classpath(cpList.map { it.jarFile.get().absolutePath }) classpath(cpList.map { it.jarFile.get().absolutePath })