Minor: remove GradleICReporter
This commit is contained in:
-32
@@ -1,32 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
|
||||||
* that can be found in the license/LICENSE.txt file.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package org.jetbrains.kotlin.gradle.incremental
|
|
||||||
|
|
||||||
import org.gradle.api.logging.Logging
|
|
||||||
import org.jetbrains.kotlin.cli.common.ExitCode
|
|
||||||
import org.jetbrains.kotlin.gradle.plugin.kotlinDebug
|
|
||||||
import org.jetbrains.kotlin.gradle.utils.pathsAsStringRelativeTo
|
|
||||||
import org.jetbrains.kotlin.incremental.ICReporter
|
|
||||||
import java.io.File
|
|
||||||
|
|
||||||
internal class GradleICReporter(private val projectRootFile: File) : ICReporter {
|
|
||||||
private val log = Logging.getLogger(GradleICReporter::class.java)
|
|
||||||
|
|
||||||
override fun report(message: () -> String) {
|
|
||||||
log.kotlinDebug(message)
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun pathsAsString(files: Iterable<File>): String =
|
|
||||||
files.pathsAsStringRelativeTo(projectRootFile)
|
|
||||||
|
|
||||||
override fun reportCompileIteration(sourceFiles: Collection<File>, exitCode: ExitCode) {
|
|
||||||
if (sourceFiles.any()) {
|
|
||||||
report { "compile iteration: ${pathsAsString(sourceFiles)}" }
|
|
||||||
}
|
|
||||||
report { "compiler exit code: $exitCode" }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
-2
@@ -27,7 +27,6 @@ import org.jetbrains.kotlin.compilerRunner.*
|
|||||||
import org.jetbrains.kotlin.daemon.common.MultiModuleICSettings
|
import org.jetbrains.kotlin.daemon.common.MultiModuleICSettings
|
||||||
import org.jetbrains.kotlin.gradle.dsl.*
|
import org.jetbrains.kotlin.gradle.dsl.*
|
||||||
import org.jetbrains.kotlin.gradle.incremental.ChangedFiles
|
import org.jetbrains.kotlin.gradle.incremental.ChangedFiles
|
||||||
import org.jetbrains.kotlin.gradle.incremental.GradleICReporter
|
|
||||||
import org.jetbrains.kotlin.gradle.utils.pathsAsStringRelativeTo
|
import org.jetbrains.kotlin.gradle.utils.pathsAsStringRelativeTo
|
||||||
import org.jetbrains.kotlin.gradle.internal.CompilerArgumentAwareWithInput
|
import org.jetbrains.kotlin.gradle.internal.CompilerArgumentAwareWithInput
|
||||||
import org.jetbrains.kotlin.gradle.internal.prepareCompilerArguments
|
import org.jetbrains.kotlin.gradle.internal.prepareCompilerArguments
|
||||||
@@ -518,7 +517,6 @@ open class Kotlin2JsCompile() : AbstractKotlinCompile<K2JSCompilerArguments>(),
|
|||||||
val messageCollector = GradleMessageCollector(logger)
|
val messageCollector = GradleMessageCollector(logger)
|
||||||
val outputItemCollector = OutputItemsCollectorImpl()
|
val outputItemCollector = OutputItemsCollectorImpl()
|
||||||
val compilerRunner = GradleCompilerRunner(project)
|
val compilerRunner = GradleCompilerRunner(project)
|
||||||
val reporter = GradleICReporter(project.rootProject.projectDir)
|
|
||||||
|
|
||||||
val environment = when {
|
val environment = when {
|
||||||
incremental -> {
|
incremental -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user