Sign in
apache
/
groovy
/
refs/tags/GROOVY_1_0
/
.
/
groovy-core
/
src
/
main
/
groovy
/
util
/
FileNameByRegexFinder.groovy
blob: d9bd6eb1c080538d8e800a72f057f940c9e42a2b [
file
] [
log
] [
blame
]
package
groovy
.
util
class
FileNameByRegexFinder
implements
IFileNameFinder
{
List
getFileNames
(
String
basedir
,
String
pattern
){
def
result
=
[]
new
File
(
basedir
).
eachFileRecurse
{
if
(
it
.
path
=~
pattern
)
result
<<
it
.
absolutePath
}
return
result
}
}