I\'m trying to get (not print, that\'s easy) the list of files in a directory and its sub directories.
I\'ve tried:
def folder = \"C:\\\\DevEnv\\\\Pr
The following works for me in Gradle / Groovy for build.gradle for an Android project, without having to import groovy.io.FileType (NOTE: Does not recurse subdirectories, but when I found this solution I no longer cared about recursion, so you may not either):
FileCollection proGuardFileCollection = files { file('./proguard').listFiles() }
proGuardFileCollection.each {
println "Proguard file located and processed: " + it
}