summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKouhei Sutou <kou@clear-code.com>2018-08-29 15:43:13 +0900
committerKouhei Sutou <kou@clear-code.com>2018-08-29 15:43:13 +0900
commitc104bb74c791deb1ee37ed75e8534cc9ff643985 (patch)
treeebeaa1af249f871f149f403a1aeaf0871d5dfbf5 /lib
parent947abfc64b4c1a03762b5bbe1d279fd50b2935c4 (diff)
downloadrake-compiler-c104bb74c791deb1ee37ed75e8534cc9ff643985.tar.gz
Use require at top level
Diffstat (limited to 'lib')
-rw-r--r--lib/rake/javaextensiontask.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rake/javaextensiontask.rb b/lib/rake/javaextensiontask.rb
index d467303..15cc2f7 100644
--- a/lib/rake/javaextensiontask.rb
+++ b/lib/rake/javaextensiontask.rb
@@ -1,3 +1,5 @@
+require "rbconfig"
+
require 'rake/baseextensiontask'
# Define a series of tasks to aid in the compilation of Java extensions for
@@ -211,7 +213,6 @@ execute the Rake compilation task using the JRuby interpreter.
end
end
unless jruby_cpath
- require 'rbconfig'
libdir = RbConfig::CONFIG['libdir']
if libdir.start_with? "classpath:"
raise 'Cannot build with jruby-complete'