Add verbose mode to build reports
#KT-12700 Verbose mode can be enabled by adding `kotlin.build.report.verbose=true` to `gradle.properties` file.
This commit is contained in:
-4
@@ -144,10 +144,6 @@ abstract class IncrementalCompilerRunner<
|
||||
|
||||
if (dirtySourcesSinceLastTimeFile.exists()) {
|
||||
val files = dirtySourcesSinceLastTimeFile.readLines().map(::File)
|
||||
if (files.isNotEmpty()) {
|
||||
reporter.reportVerbose { "Source files added since last compilation: ${reporter.pathsAsString(files)}" }
|
||||
}
|
||||
|
||||
dirtyFiles.add(files, "was not compiled last time")
|
||||
}
|
||||
}
|
||||
|
||||
+4
-2
@@ -32,7 +32,6 @@ import org.jetbrains.kotlin.cli.common.messages.MessageCollector
|
||||
import org.jetbrains.kotlin.cli.jvm.K2JVMCompiler
|
||||
import org.jetbrains.kotlin.cli.jvm.compiler.EnvironmentConfigFiles
|
||||
import org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment
|
||||
import org.jetbrains.kotlin.compilerRunner.ArgumentUtils
|
||||
import org.jetbrains.kotlin.config.CompilerConfiguration
|
||||
import org.jetbrains.kotlin.config.IncrementalCompilation
|
||||
import org.jetbrains.kotlin.config.Services
|
||||
@@ -79,7 +78,10 @@ fun makeIncrementally(
|
||||
}
|
||||
}
|
||||
|
||||
object EmptyICReporter : ICReporter {
|
||||
object EmptyICReporter : ICReporterBase() {
|
||||
override fun reportCompileIteration(incremental: Boolean, sourceFiles: Collection<File>, exitCode: ExitCode) {
|
||||
}
|
||||
|
||||
override fun report(message: () -> String) {
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -17,10 +17,10 @@
|
||||
package org.jetbrains.kotlin.incremental.utils
|
||||
|
||||
import org.jetbrains.kotlin.cli.common.ExitCode
|
||||
import org.jetbrains.kotlin.incremental.ICReporter
|
||||
import org.jetbrains.kotlin.incremental.ICReporterBase
|
||||
import java.io.File
|
||||
|
||||
class TestICReporter : ICReporter {
|
||||
class TestICReporter : ICReporterBase() {
|
||||
private val compiledSourcesMutable = arrayListOf<File>()
|
||||
|
||||
val compiledSources: List<File>
|
||||
|
||||
Reference in New Issue
Block a user