Skip to content

Commit

Permalink
Pass .java files through compiler untouched
Browse files Browse the repository at this point in the history
This way they'll get included in the javac command line wth the
--javac option:

jrubyc --javac ruby_file.rb SomeOtherClass.java
  • Loading branch information
nicksieger committed Sep 7, 2010
1 parent 42e69f2 commit 782139c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/ruby/site_ruby/shared/jruby/compiler.rb
Expand Up @@ -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

Expand Down

0 comments on commit 782139c

Please sign in to comment.