Hi folks! I'm probably missing something obvious ...
# plugin-development
b
Hi folks! I'm probably missing something obvious but - is there a simple way (in a Task action) to convert an arbitrary
java.nio.file.Path
into a
FileTreeElement
? The paths are not guaranteed to point to files within the Gradle project; my interest here is in using a
PatternSet
to filter them, but the spec it creates only operates on
FileTreeElement
instances. Is such a thing even possible with the public API?
v
Inject an instance of
ObjectFactory
, use its
fileTree
function
b
🤦
thank you sir
👌 1