Author: donaldp
Date: Sat Oct 20 23:02:12 2012
New Revision: 1400530
URL: http://svn.apache.org/viewvc?rev=1400530&view=rev
Log:
File.mtime causes an exception if the file does not exist under win32 so avoid
this scenario
Modified:
buildr/trunk/lib/buildr/core/cc.rb
Modified: buildr/trunk/lib/buildr/core/cc.rb
URL:
http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/core/cc.rb?rev=1400530&r1=1400529&r2=1400530&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/core/cc.rb (original)
+++ buildr/trunk/lib/buildr/core/cc.rb Sat Oct 20 23:02:12 2012
@@ -70,7 +70,7 @@ module Buildr
srcs.each do |a|
if File.directory? a
Dir.glob("#{a}/**/*").map { |f| times[f] = File.mtime f }
- else
+ elsif File.exist? a
times[a] = File.mtime a
end
end