We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8afda2 commit abf5e26Copy full SHA for abf5e26
lib/rake/file_task.rb
@@ -14,7 +14,11 @@ class FileTask < Task
14
# Is this file task needed? Yes if it doesn't exist, or if its time stamp
15
# is out of date.
16
def needed?
17
- !File.exist?(name) || out_of_date?(timestamp) || @application.options.build_all
+ begin
18
+ out_of_date?(File.mtime(name)) || @application.options.build_all
19
+ rescue Errno::ENOENT
20
+ true
21
+ end
22
end
23
24
# Time stamp for file task.
0 commit comments