Extract FileCollection from CopySpec
Provide a method that obtains the source files for a CopySpec
in a way that isolates any internal Gradle API from the user.
See also: https://discuss.gradle.org/t/how-to-get-from-copyspec-to-filecollection/7335/10