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
@@ -6,8 +6,21 @@ module Rake
       add_matching(pattern) if pattern
     end
 
-    def add_matching(pattern)
-      Dir[pattern].each { |fn| self << fn } if pattern
+    def add(*filenames)
+      filenames.each do |fn|
+	case fn
+	when Array
+	  fn.each { |f| self << f }
+	else
+	  self << fn
+	end
+      end
+    end
+
+    def add_matching(*patterns)
+      patterns.each do |pattern|
+	Dir[pattern].each { |fn| self << fn } if pattern
+      end
     end
 
     def to_s
Added "add" function.  Arrays and single file names are acceptable.


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