Thomas Keller
08/19/2024, 9:01 AMConfigurableFileCollection used in SourceTask s: Whenever a plugin uses one of those and multiple source directories are added to it (say build/generated/foo/kotlin and build/generated/bar/kotlin), I cannot exclude files from this said file collection via exclude("**/build/**") or exclude("**/generated/**"), but only match path parts beyond the configured source directories, e.g. **/SomeFile.kt. I could not see an API in PatternFilterable that makes this possible and my naive attempt to use FileTreeElement via
exclude { spec ->
spec.file.absolutePath.contains("**/build/**")
}
failed as well. So what do I overlook here?Vampire
08/19/2024, 9:15 AMbla/build/generated/blu and not **/build/**/generated/blu.Vampire
08/19/2024, 9:15 AMString.contains and that string does not contain **/build/** 🙂Thomas Keller
08/19/2024, 10:49 AMThomas Keller
08/19/2024, 10:50 AMPatternFilterable.