From 782139cd096332506b2dfb08e675ee19b8109e38 Mon Sep 17 00:00:00 2001 From: Nick Sieger Date: Tue, 7 Sep 2010 09:59:42 +0200 Subject: [PATCH] Pass .java files through compiler untouched This way they'll get included in the javac command line wth the --javac option: jrubyc --javac ruby_file.rb SomeOtherClass.java --- lib/ruby/site_ruby/shared/jruby/compiler.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/ruby/site_ruby/shared/jruby/compiler.rb b/lib/ruby/site_ruby/shared/jruby/compiler.rb index 5b247510d2e..7c550860e95 100644 --- a/lib/ruby/site_ruby/shared/jruby/compiler.rb +++ b/lib/ruby/site_ruby/shared/jruby/compiler.rb @@ -192,7 +192,11 @@ def compile_files_with_options(filenames, options = default_options) errors += compile_proc[filename] } else - errors += compile_proc[filename] + if filename =~ /\.java$/ + files << filename + else + errors += compile_proc[filename] + end end end