Author: donaldp
Date: Thu Apr 18 10:17:29 2013
New Revision: 1469267

URL: http://svn.apache.org/r1469267
Log:
Ensure that the source files also have their times set

Modified:
    buildr/trunk/spec/core/compile_spec.rb

Modified: buildr/trunk/spec/core/compile_spec.rb
URL: 
http://svn.apache.org/viewvc/buildr/trunk/spec/core/compile_spec.rb?rev=1469267&r1=1469266&r2=1469267&view=diff
==============================================================================
--- buildr/trunk/spec/core/compile_spec.rb (original)
+++ buildr/trunk/spec/core/compile_spec.rb Thu Apr 18 10:17:29 2013
@@ -360,7 +360,7 @@ describe Buildr::CompileTask, '#invoke' 
   it 'should not force compilation if sources older than compiled' do
     # When everything has the same timestamp, nothing is compiled again.
     time = now_at_fs_resolution
-    sources.map { |src| 
src.pathmap("#{compile_task.target}/thepackage/%n.class") }.
+    sources.map { |src| File.utime(time, time, src); 
src.pathmap("#{compile_task.target}/thepackage/%n.class") }.
       each { |kls| write kls ; File.utime(time, time, kls) }
     lambda { compile_task.from(sources).invoke }.should_not 
run_task('foo:compile')
   end


Reply via email to