I want to know what is the pros and cons of using Runtime to execute Ruby script from Java class over using a ruby-java bridge JRuby?
Example for runtime
Process process = Runtime.getRuntime().exec("ruby start.rb blue_button_example_data.txt");
try {
process.waitFor();
} catch (InterruptedException e) {
e.printStackTrace();
return;
}
example of jRuby http://dior.ics.muni.cz/~makub/ruby/
I am asking because I have a legacy Java system and we are making integration with a system that has ruby scripts and we are trying to reuse them instead of rewrite them in java. and we want to know which approach is best.
Thanks!