mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
Log tweaks.
This commit is contained in:
parent
83ddd48260
commit
3147fe43a1
3 changed files with 3 additions and 3 deletions
|
@ -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> {
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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 })
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue