Skip to content

Commit d9c814b

Browse files
author
Krystian Panek
committed
Verbose
1 parent 5b68d82 commit d9c814b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/kotlin/com/cognifide/gradle/environment/hosts/HostUpdater.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ class HostUpdater(val common: CommonExtension) {
4444
val dir = workDir.get().asFile.apply { mkdirs() }
4545

4646
val entriesFile = dir.resolve("hosts.txt").apply {
47-
logger.info("Generating hosts entries file: $this")
48-
writeText(hosts.joinToString(System.lineSeparator()) { it.text })
47+
val entriesText = hosts.joinToString(System.lineSeparator()) { it.text }
48+
logger.info("Generating hosts entries file '$this' with contents:\n$entriesText")
49+
writeText(entriesText)
4950
}
5051
val updaterJar = dir.resolve("hosts.jar").apply {
5152
logger.info("Providing hosts updater program: $this")

0 commit comments

Comments
 (0)