1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-25 07:57:12 -07:00

Fix log line.

This commit is contained in:
Cedric Beust 2017-03-26 10:18:36 -07:00
parent 67dd7e54e9
commit 2a7775529d

View file

@ -51,11 +51,14 @@ class AptPlugin @Inject constructor(val dependencyManager: DependencyManager)
override fun apply(project: Project, context: KobaltContext) {
listOf(aptConfigs[project.name]?.outputDir, aptConfigs[project.name]?.outputDir)
.filterNotNull()
.distinct()
.map { generatedDir(project, it) }
.forEach {
context.logger.log(project.name, 1, "Deleting " + it.absolutePath)
val success = it.deleteRecursively()
if (! success) warn(" Couldn't delete " + it.absolutePath)
it.normalize().absolutePath.let { path ->
context.logger.log(project.name, 1, " Deleting " + path)
val success = it.deleteRecursively()
if (!success) warn(" Couldn't delete " + path)
}
}
}