buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From boisv...@apache.org
Subject svn commit: r1459984 - /buildr/trunk/lib/buildr/core/application.rb
Date Fri, 22 Mar 2013 20:54:15 GMT
Author: boisvert
Date: Fri Mar 22 20:54:15 2013
New Revision: 1459984

URL: http://svn.apache.org/r1459984
Log:
BUILDR-662 reported time is much shorter than actual

Modified:
    buildr/trunk/lib/buildr/core/application.rb

Modified: buildr/trunk/lib/buildr/core/application.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/core/application.rb?rev=1459984&r1=1459983&r2=1459984&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/core/application.rb (original)
+++ buildr/trunk/lib/buildr/core/application.rb Fri Mar 22 20:54:15 2013
@@ -124,6 +124,7 @@ module Buildr
     end
 
     def run
+      @start = Time.now
       standard_exception_handling do
         init 'Buildr'
         load_buildfile
@@ -234,7 +235,6 @@ module Buildr
         elsif options.execute
           eval options.execute
         else
-          @start = Time.now
           top_level_tasks.each { |task_name| invoke_task(task_name) }
           if verbose
             elapsed = Time.now - @start



Mime
View raw message