lib/rake/rdoctask.rb in jimweirich-rake-0.8.1.9 vs lib/rake/rdoctask.rb in jimweirich-rake-0.8.1.10

- old
+ new

@@ -89,17 +89,17 @@ desc "Build the #{name} HTML Files" task name desc "Force a rebuild of the RDOC files" - task paste("re", name) => [paste("clobber_", name), name] + task "re#{name}" => ["clobber_#{name}", name] desc "Remove rdoc products" - task paste("clobber_", name) do + task "clobber_#{name}" do rm_r rdoc_dir rescue nil end - - task :clobber => [paste("clobber_", name)] + + task :clobber => ["clobber_#{name}"] directory @rdoc_dir task name => [rdoc_target] file rdoc_target => @rdoc_files + [$rakefile] do rm_r @rdoc_dir rescue nil