class FFI::Compiler::MultiFileTask
def self.scope_name(scope, task_name)
This is here for backwards-compatibility so we have namespace-free name
def self.scope_name(scope, task_name) task_name end
def invoke_with_call_chain(task_args, invocation_chain)
def invoke_with_call_chain(task_args, invocation_chain) return unless needed? super end
def needed?
def needed? begin @application.options.build_all || out_of_date?(File.mtime(name)) rescue Errno::ENOENT true end end
def out_of_date?(timestamp)
def out_of_date?(timestamp) all_prerequisite_tasks.any? do |prereq| prereq_task = application[prereq, @scope] if prereq_task.instance_of?(Rake::FileTask) File.exist?(prereq_task.name) && prereq_task.timestamp > timestamp else prereq_task.needed? end end end
def timestamp
def timestamp begin File.mtime(name) rescue Errno::ENOENT Rake::LATE end end