From c4ee0df8ba2cf7cc6aaa785c8df20a91b1719021 Mon Sep 17 00:00:00 2001 From: hsbt Date: Sat, 4 Apr 2015 12:31:31 +0000 Subject: * lib/rake/*: Gemify rake [fix GH-862][Feature #11025] * test/rake/*: ditto. * tool/rbinstall.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rake/file_creation_task.rb | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 lib/rake/file_creation_task.rb (limited to 'lib/rake/file_creation_task.rb') diff --git a/lib/rake/file_creation_task.rb b/lib/rake/file_creation_task.rb deleted file mode 100644 index c87e2192bb..0000000000 --- a/lib/rake/file_creation_task.rb +++ /dev/null @@ -1,24 +0,0 @@ -require 'rake/file_task' -require 'rake/early_time' - -module Rake - - # A FileCreationTask is a file task that when used as a dependency will be - # needed if and only if the file has not been created. Once created, it is - # not re-triggered if any of its dependencies are newer, nor does trigger - # any rebuilds of tasks that depend on it whenever it is updated. - # - class FileCreationTask < FileTask - # Is this file task needed? Yes if it doesn't exist. - def needed? - ! File.exist?(name) - end - - # Time stamp for file creation task. This time stamp is earlier - # than any other time stamp. - def timestamp - Rake::EARLY - end - end - -end -- cgit v1.2.3