jruby/warbler — pull request #218 by jayjlawrence (2013-11-24 02:22:03+00:00)
Title: Invoke jrubyc using system to ensure that STDERR from jrubyc is shown

I am experiencing issues with the 'jrubyc' process. To bring issues to the surface I recommend using system %Q{ } rather than %x{ }. Much to my surprise, under jruby (at least 1.7.8) %x{ } appears to flush STDERR!

I'd also highly recommend catching the exit status from jrubyc. The exitstatus is the number of files it did not compile. In this case there will be no class generated ... and with the ruby file a stub, well, you're SOL on that file. BTW, jrubyc will fail if there's a single syntax error in the file.

In my patch I have simply raised an exception but I expect you'd want to handle it more elegantly.

Thanks!