ruby-win32/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake/rdoctask.rb
def define
      if name.to_s != "rdoc"
        desc "Build the RDOC HTML Files"
      end

      desc "Build the #{name} HTML Files"
      task name
      
      desc "Force a rebuild of the RDOC files"
      task paste("re", name) => [paste("clobber_", name), name]
      
      desc "Remove rdoc products" 
      task paste("clobber_", name) do
        rm_r rdoc_dir rescue nil
      end

      task :clobber => [paste("clobber_", name)]
      
      directory @rdoc_dir
      task name => [rdoc_target]
      file rdoc_target => @rdoc_files + [$rakefile] do
        rm_r @rdoc_dir rescue nil
        args = option_list + @rdoc_files
        if @external
          argstring = args.join(' ')
          sh %{ruby -Ivendor vender/rd #{argstring}}
        else
          require 'rdoc/rdoc'
          RDoc::RDoc.new.document(args)
        end
      end
      self
    end
# Create the tasks defined by this task lib.
Create the tasks defined by this task lib.
Create the tasks defined by this task lib .
def define
      if name.to_s != "rdoc"
        desc "Build the RDOC HTML Files"
      end
      desc "Build the #{name} HTML Files"
      task name
      desc "Force a rebuild of the RDOC files"
      task paste("re", name) => [paste("clobber_", name), name]
      desc "Remove rdoc products" 
      task paste("clobber_", name) do
        rm_r rdoc_dir rescue nil
      end
      task :clobber => [paste("clobber_", name)]
      directory @rdoc_dir
      task name => [rdoc_target]
      file rdoc_target => @rdoc_files + [$rakefile] do
        rm_r @rdoc_dir rescue nil
        args = option_list + @rdoc_files
        if @external
          argstring = args.join(' ')
          sh %{ruby -Ivendor vender/rd #{argstring}}
        else
          require 'rdoc/rdoc'
          RDoc::RDoc.new.document(args)
        end
      end
      self
    end
def define if name . to_s != "rdoc" desc "Build the RDOC HTML Files" end desc "Build the #{name} HTML Files" task name desc "Force a rebuild of the RDOC files" task paste ( "re" , name ) => [ paste ( "clobber_" , name ) , name ] desc "Remove rdoc products" task paste ( "clobber_" , name ) do rm_r rdoc_dir rescue nil end task :clobber => [ paste ( "clobber_" , name ) ] directory @rdoc_dir task name => [ rdoc_target ] file rdoc_target => @rdoc_files + [ $rakefile ] do rm_r @rdoc_dir rescue nil args = option_list + @rdoc_files if @external argstring = args . join ( ' ' ) sh %{ruby -Ivendor vender/rd #{argstring}} else require 'rdoc/rdoc' RDoc :: RDoc . new . document ( args ) end end self end
Create the tasks defined by this task lib.
Create the tasks defined by this task lib .