buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From as...@apache.org
Subject svn commit: r634883 - /incubator/buildr/trunk/lib/java/nailgun.rb
Date Sat, 08 Mar 2008 01:14:45 GMT
Author: assaf
Date: Fri Mar  7 17:14:42 2008
New Revision: 634883

URL: http://svn.apache.org/viewvc?rev=634883&view=rev
Log:
Moved all requires to the top, keeps RDoc happy.

Modified:
    incubator/buildr/trunk/lib/java/nailgun.rb

Modified: incubator/buildr/trunk/lib/java/nailgun.rb
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/lib/java/nailgun.rb?rev=634883&r1=634882&r2=634883&view=diff
==============================================================================
--- incubator/buildr/trunk/lib/java/nailgun.rb (original)
+++ incubator/buildr/trunk/lib/java/nailgun.rb Fri Mar  7 17:14:42 2008
@@ -14,6 +14,12 @@
 # the License.
 
 require 'rbconfig'
+require 'ostruct'
+require 'core/application_cli'
+require 'jruby'
+require 'thread'
+require 'monitor'
+        require 'benchmark'
 
 module Buildr
 
@@ -225,10 +231,8 @@
         Buildr.const_set(:VERSION, ctx.server.runtime.getObject.
                          const_get(:Buildr)::VERSION)
   
-        require 'ostruct'
         obj = OpenStruct.new(:ctx => ctx, :opts => opts)
         class << obj
-          require 'core/application_cli'
           include Buildr::CommandLineInterface
           
           def help
@@ -320,7 +324,6 @@
       
       def benchmark(action = ['Completed'], verbose = true)
         result = nil
-        require 'benchmark'
         times = Benchmark.measure do
           result = yield(action)
         end
@@ -350,7 +353,6 @@
     end # module Util
 
     boot do
-      require 'jruby'
       
       class ::ConcreteJavaProxy
         def self.jclass(name = nil)
@@ -597,8 +599,6 @@
       end # class BuildrNail
 
       class BuildrFactory
-        require 'thread'
-        require 'monitor'
         
         attr_accessor :buildrs_size, :runtimes_size
         



Mime
View raw message