mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 00:38:11 -07:00
Fix log line.
This commit is contained in:
parent
67dd7e54e9
commit
2a7775529d
1 changed files with 6 additions and 3 deletions
|
@ -51,11 +51,14 @@ class AptPlugin @Inject constructor(val dependencyManager: DependencyManager)
|
||||||
override fun apply(project: Project, context: KobaltContext) {
|
override fun apply(project: Project, context: KobaltContext) {
|
||||||
listOf(aptConfigs[project.name]?.outputDir, aptConfigs[project.name]?.outputDir)
|
listOf(aptConfigs[project.name]?.outputDir, aptConfigs[project.name]?.outputDir)
|
||||||
.filterNotNull()
|
.filterNotNull()
|
||||||
|
.distinct()
|
||||||
.map { generatedDir(project, it) }
|
.map { generatedDir(project, it) }
|
||||||
.forEach {
|
.forEach {
|
||||||
context.logger.log(project.name, 1, "Deleting " + it.absolutePath)
|
it.normalize().absolutePath.let { path ->
|
||||||
val success = it.deleteRecursively()
|
context.logger.log(project.name, 1, " Deleting " + path)
|
||||||
if (! success) warn(" Couldn't delete " + it.absolutePath)
|
val success = it.deleteRecursively()
|
||||||
|
if (!success) warn(" Couldn't delete " + path)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue