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:
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) {
|
||||
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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue