[Gradle, JS] No conf cache report if no root build file
This commit is contained in:
committed by
Space Team
parent
ef101232ed
commit
8363b0e9cf
+3
-1
@@ -10,6 +10,7 @@ import org.jetbrains.kotlin.gradle.BaseGradleIT
|
|||||||
import java.net.URI
|
import java.net.URI
|
||||||
import java.nio.file.Path
|
import java.nio.file.Path
|
||||||
import kotlin.io.path.ExperimentalPathApi
|
import kotlin.io.path.ExperimentalPathApi
|
||||||
|
import kotlin.io.path.exists
|
||||||
import kotlin.io.path.name
|
import kotlin.io.path.name
|
||||||
import kotlin.test.fail
|
import kotlin.test.fail
|
||||||
|
|
||||||
@@ -71,7 +72,8 @@ private fun copyReportToTempDir(htmlReportFile: Path): Path =
|
|||||||
private val GradleProject.configurationCacheReportFile
|
private val GradleProject.configurationCacheReportFile
|
||||||
get() = projectPath
|
get() = projectPath
|
||||||
.resolve("build")
|
.resolve("build")
|
||||||
.findInPath("configuration-cache-report.html")
|
.takeIf { it.exists() }
|
||||||
|
?.findInPath("configuration-cache-report.html")
|
||||||
?.let { copyReportToTempDir(it) }
|
?.let { copyReportToTempDir(it) }
|
||||||
|
|
||||||
private val Path.asClickableFileUrl
|
private val Path.asClickableFileUrl
|
||||||
|
|||||||
Reference in New Issue
Block a user