PATH:
opt
/
alt
/
ruby20
/
lib64
/
ruby
/
2.0.0
/
rake
require 'rake/task.rb' require 'rake/early_time' module Rake # ######################################################################### # A FileTask is a task that includes time based dependencies. If any of a # FileTask's prerequisites have a timestamp that is later than the file # represented by this task, then the file must be rebuilt (using the # supplied actions). # class FileTask < Task # Is this file task needed? Yes if it doesn't exist, or if its time stamp # is out of date. def needed? ! File.exist?(name) || out_of_date?(timestamp) end # Time stamp for file task. def timestamp if File.exist?(name) File.mtime(name.to_s) else Rake::EARLY end end private # Are there any prerequisites with a later time than the given time stamp? def out_of_date?(stamp) @prerequisites.any? { |n| application[n, @scope].timestamp > stamp} end # ---------------------------------------------------------------- # Task class methods. # class << self # Apply the scope to the task name according to the rules for this kind # of task. File based tasks ignore the scope when creating the name. def scope_name(scope, task_name) task_name end end end end
[-] rake_module.rb
[edit]
[-] ruby182_test_unit_fix.rb
[edit]
[-] tasklib.rb
[edit]
[-] multi_task.rb
[edit]
[-] clean.rb
[edit]
[-] task_arguments.rb
[edit]
[+]
lib
[+]
contrib
[+]
ext
[-] rule_recursion_overflow_error.rb
[edit]
[-] pseudo_status.rb
[edit]
[-] promise.rb
[edit]
[-] version.rb
[edit]
[-] task_argument_error.rb
[edit]
[-] pathmap.rb
[edit]
[-] thread_pool.rb
[edit]
[+]
loaders
[-] dsl_definition.rb
[edit]
[-] early_time.rb
[edit]
[-] cloneable.rb
[edit]
[-] thread_history_display.rb
[edit]
[-] invocation_exception_mixin.rb
[edit]
[-] default_loader.rb
[edit]
[-] file_list.rb
[edit]
[-] rake_test_loader.rb
[edit]
[-] alt_system.rb
[edit]
[-] phony.rb
[edit]
[-] runtest.rb
[edit]
[-] testtask.rb
[edit]
[-] name_space.rb
[edit]
[+]
..
[-] backtrace.rb
[edit]
[-] task_manager.rb
[edit]
[-] file_utils.rb
[edit]
[-] invocation_chain.rb
[edit]
[-] win32.rb
[edit]
[-] rdoctask.rb
[edit]
[-] trace_output.rb
[edit]
[-] file_creation_task.rb
[edit]
[-] task.rb
[edit]
[-] application.rb
[edit]
[-] classic_namespace.rb
[edit]
[-] file_utils_ext.rb
[edit]
[-] file_task.rb
[edit]
[-] gempackagetask.rb
[edit]
[-] private_reader.rb
[edit]
[-] packagetask.rb
[edit]