mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
toString()
This commit is contained in:
parent
b62dc25f8b
commit
32dc14e393
1 changed files with 2 additions and 0 deletions
|
@ -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>() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue