mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Debugging dependency sending.
This commit is contained in:
parent
4f84b8df9a
commit
2ebf932d21
1 changed files with 18 additions and 0 deletions
|
@ -12,6 +12,7 @@ import com.beust.kobalt.maven.DependencyManager
|
|||
import com.beust.kobalt.maven.dependency.FileDependency
|
||||
import com.beust.kobalt.misc.KFiles
|
||||
import com.beust.kobalt.misc.KobaltExecutors
|
||||
import com.beust.kobalt.misc.log
|
||||
import com.google.inject.Inject
|
||||
import java.io.File
|
||||
import java.nio.file.Paths
|
||||
|
@ -116,6 +117,23 @@ class DependencyData @Inject constructor(val executors: KobaltExecutors, val dep
|
|||
sources.second.toSet(), tests.second.toSet(), sources.first.toSet(), tests.first.toSet(),
|
||||
projectTasks))
|
||||
}
|
||||
|
||||
//
|
||||
// Debugging
|
||||
//
|
||||
log(2, "Returning dependencies:")
|
||||
|
||||
fun displayDependencies(header: String, dd: List<DependencyData>) {
|
||||
log(2, " $header:")
|
||||
if (dd.any()) log(2, " " + dd.map { it.id }.toSortedSet().joinToString("\n "))
|
||||
}
|
||||
|
||||
projectDatas.forEach {
|
||||
log(2, " Project: " + it.name)
|
||||
displayDependencies("compileDependencies", it.compileDependencies)
|
||||
displayDependencies("testDependencies", it.testDependencies)
|
||||
}
|
||||
|
||||
return GetDependenciesData(projectDatas, allTasks, projectResult.taskResult.errorMessage)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue