summaryrefslogtreecommitdiff
path: root/lib/rake/javaextensiontask.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rake/javaextensiontask.rb')
-rw-r--r--lib/rake/javaextensiontask.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rake/javaextensiontask.rb b/lib/rake/javaextensiontask.rb
index f484db1..711148e 100644
--- a/lib/rake/javaextensiontask.rb
+++ b/lib/rake/javaextensiontask.rb
@@ -220,7 +220,7 @@ execute the Rake compilation task using the JRuby interpreter.
jruby_home = ENV['JRUBY_HOME']
if jruby_home
candidate = File.join(jruby_home, 'lib', 'jruby.jar')
- jruby_cpath = candidate if File.exist? candidate
+ jruby_cpath = candidate if File.exist?(candidate)
end
end
@@ -229,11 +229,11 @@ execute the Rake compilation task using the JRuby interpreter.
# found lib path
unless jruby_cpath
libdir = RbConfig::CONFIG['libdir']
- if libdir.start_with? "uri:classloader:"
+ if libdir.start_with?("uri:classloader:")
raise 'Cannot build with jruby-complete from Java 9 onwards'
end
candidate = File.join(libdir, "jruby.jar")
- jruby_cpath = candidate if File.exist? candidate
+ jruby_cpath = candidate if File.exist?(candidate)
end
unless jruby_cpath