Log Kotlin compiler classpath with File.pathSeparator in Gradle

To make it easier to copy-paste it to run the compiler outside of
Gradle.
This commit is contained in:
Alexander Udalov
2023-02-10 14:13:48 +01:00
committed by Space Team
parent 0ab8d07e23
commit 0e767a7020
@@ -151,8 +151,10 @@ internal class GradleKotlinCompilerWork @Inject constructor(
private fun compileWithDaemonOrFallbackImpl(messageCollector: MessageCollector): Pair<ExitCode, KotlinCompilerExecutionStrategy> {
with(log) {
kotlinDebug { "Kotlin compiler class: ${compilerClassName}" }
kotlinDebug { "Kotlin compiler classpath: ${compilerFullClasspath.joinToString { it.normalize().absolutePath }}" }
kotlinDebug { "Kotlin compiler class: $compilerClassName" }
kotlinDebug {
"Kotlin compiler classpath: ${compilerFullClasspath.joinToString(File.pathSeparator) { it.normalize().absolutePath }}"
}
kotlinDebug { "$taskPath Kotlin compiler args: ${compilerArgs.joinToString(" ")}" }
}