Skip to content

Commit

Permalink
Probably fix examples CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Sep 24, 2023
1 parent 31e32b6 commit fb081ef
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions photonlib-cpp-examples/examples.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
// 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 = [".gradle", "bin"]
def EXCLUDED_DIRS = ["bin", "build"]

// List all non-hidden directories not in EXCUDED_DIRS
ext.exampleFolderNames = file("${rootDir}")
.listFiles()
.findAll { it.isDirectory() && !it.isHidden() && !(it.name in EXCLUDED_DIRS) }
.findAll {
return (it.isDirectory()
&& !it.isHidden()
&& !(it.name in EXCLUDED_DIRS) && !it.name.startsWith(".")
&& it.toPath().resolve("build.gradle").toFile().exists())
}
.collect { it.name }
9 changes: 7 additions & 2 deletions photonlib-java-examples/examples.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
// 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 = [".gradle", "bin"]
def EXCLUDED_DIRS = ["bin", "build"]

// List all non-hidden directories not in EXCUDED_DIRS
ext.exampleFolderNames = file("${rootDir}")
.listFiles()
.findAll { it.isDirectory() && !it.isHidden() && !(it.name in EXCLUDED_DIRS) }
.findAll {
return (it.isDirectory()
&& !it.isHidden()
&& !(it.name in EXCLUDED_DIRS) && !it.name.startsWith(".")
&& it.toPath().resolve("build.gradle").toFile().exists())
}
.collect { it.name }

0 comments on commit fb081ef

Please sign in to comment.