Assuming FileListhere is a class FileListfrom rake, then the problem is in the underlying Ruby class Dir(which is being used FileList) that does not match the files starting with .for *wildcards. Relevant part of rake.rb
def add_matching(pattern)
Dir[pattern].each do |fn|
self << fn unless exclude?(fn)
end
end
, add_matching, , .. , - .
class Rake::FileList
def add_matching(pattern)
files = Dir[pattern]
if RUBY_PLATFORM =~ /mswin/
parts = File.split(pattern)
if parts.last[0] == ?*
files += Dir[File.join(parts[0...-1] << '.' + parts.last)]
end
end
files.each do |fn|
self << fn unless exclude?(fn)
end
end
end
: Linux , , ., . /home/mikej/root 2 a b, first.template .other.template,
Rake::FileList.new('home/mikej/root/**/*.template')
=> ["/home/mikej/root/a/first.template", "/home/mikej/root/b/first.template"]
Linux , , .