class Rake::FileList
Public Class Methods
glob(pattern, *args)
click to toggle source
# File lib/buildr/core/application.rb, line 700 def glob(pattern, *args) Dir.glob(pattern, *args).sort end
Private Instance Methods
add_matching(pattern)
click to toggle source
Add matching glob patterns.
# File lib/buildr/core/application.rb, line 686 def add_matching(pattern) # Patch to use File::FNM_DOTMATCH where appropriate flags = 0 args = [pattern] flags |= File::FNM_DOTMATCH if pattern =~ /\.\*/ flags |= File::FNM_EXTGLOB if pattern =~ /[^\\]\{.*\}/ args << flags unless 0 == flags FileList.glob(*args).each do |fn| self << fn unless exclude?(fn) end end