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

toString()

This commit is contained in:
Cedric Beust 2017-03-27 15:44:47 -07:00
parent b62dc25f8b
commit 32dc14e393

View file

@ -29,6 +29,8 @@ class BuildSources(val file: File) : IBuildSources {
override fun exists() = findSourceFiles().isNotEmpty() override fun exists() = findSourceFiles().isNotEmpty()
override fun toString() = "{BuildSources " + findSourceFiles()[0] + "...}"
fun _findSourceFiles() : List<File> { fun _findSourceFiles() : List<File> {
val result = arrayListOf<File>() val result = arrayListOf<File>()
Files.walkFileTree(Paths.get(file.absolutePath), object : SimpleFileVisitor<Path>() { Files.walkFileTree(Paths.get(file.absolutePath), object : SimpleFileVisitor<Path>() {