diff --git a/rake/lib/rake/filelist.rb b/rake/lib/rake/filelist.rb
index <HASH>..<HASH> 100644
--- a/rake/lib/rake/filelist.rb
+++ b/rake/lib/rake/filelist.rb
@@ -10,7 +10,9 @@ module Rake
       filenames.each do |fn|
 	case fn
 	when Array
-	  fn.each { |f| self << f }
+	  fn.each { |f| self.add(f) }
+	when %r{[*?]}
+	  add_matching(fn)
 	else
 	  self << fn
 	end
@@ -22,6 +24,7 @@ module Rake
 	Dir[pattern].each { |fn| self << fn } if pattern
       end
     end
+    private :add_matching
 
     def to_s
       self.join(' ')
Add now handles patterns as a special case.
Add_matching is now private.


git-svn-id: svn+ssh://rubyforge.org/var/svn/rake/trunk@<I> 5af<I>f1-ac1a-<I>-<I>d6-<I>a<I>c<I>ef