mirror of
https://github.com/Astatin3/photonvision-2025.0.0-beta-6.git
synced 2026-06-09 08:38:00 -06:00
15 lines
585 B
Groovy
15 lines
585 B
Groovy
|
|
// These should be the only 2 non-project subdirectories in the examples folder
|
||
|
|
// I could check for (it)/build.gradle to exist, but w/e
|
||
|
|
def EXCLUDED_DIRS = ["bin", "build"]
|
||
|
|
|
||
|
|
// List all non-hidden directories not in EXCUDED_DIRS
|
||
|
|
ext.exampleFolderNames = file("${rootDir}")
|
||
|
|
.listFiles()
|
||
|
|
.findAll {
|
||
|
|
return (it.isDirectory()
|
||
|
|
&& !it.isHidden()
|
||
|
|
&& !(it.name in EXCLUDED_DIRS) && !it.name.startsWith(".")
|
||
|
|
&& it.toPath().resolve("build.gradle").toFile().exists())
|
||
|
|
}
|
||
|
|
.collect { it.name }
|