Class Rake::FileTask |
|
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).
Methods |
Public Instance methods |
needed?() |
Is this file task needed? Yes if it doesn’t exist, or if its time stamp is out of date.
# File lib/rake.rb, line 496 496: def needed? 497: return true unless File.exist?(name) 498: return true if out_of_date?(timestamp) 499: false 500: end
timestamp() |
Time stamp for file task.
# File lib/rake.rb, line 503 503: def timestamp 504: if File.exist?(name) 505: File.mtime(name.to_s) 506: else 507: Rake::EARLY 508: end 509: end